The configuration for this example is:
flowplayer("a.example", "", {
log: { level: 'debug', filter: 'org.flowplayer.cluster.*' },
clip: {
url: 'mp4:the-black-hole.mp4',
connectionProvider: 'cluster',
provider: 'rtmp',
onStart: function(clip) {
info.innerHTML += "clip started: " + clip.url;
}
},
plugins: {
rtmp: {
url: ""
},
cluster: {
url: "",
netConnectionUrl: 'rtmp://ne7c0nwbit.rtmphost.com/videoplayer',
// our hosts on the cluster
hosts: [
{host: 'rtmp://invalid.flowplayer.org/video'},
{host: 'rtmp://nonexistent.flowplayer.org/video'},
{host: 'rtmp://ne7c0nwbit.rtmphost.com/videoplayer'}
],
// callback method for connection attempt
onConnect: function(host, index) {
info.innerHTML += "attempting to connect: " + host;
},
// callback method for connection failure
onConnectFailed: function(host, index) {
info.innerHTML += "connection failed to: " + host";
}
},
ova: {
url: "",
"playOnce": true,
"ads": {
"servers": [
{
"type": "OpenX",
"apiAddress": "",
"allowAdRepetition": true
}
],
"schedule": [
{
"zone": "5",
"position": "pre-roll"
}
]
},
"debug": {
"levels": ""
}
}
}
});