Open shacharz opened 9 years ago
Maybe I'll elaborate a bit more. Here's an example configuration from http://www.flashls.org/latest/examples/flowplayer/index.html:
flowplayer("player", "flowplayer.swf", {
// configure the required plugins
plugins: {
httpstreaming: {
url: 'flashlsFlowPlayer.swf'
}
},
clip: {
url: "http://184.72.239.149/vod/smil:bigbuckbunnyiphone.smil/chunklist-b400000.m3u8",
ipadUrl: "http://184.72.239.149/vod/smil:bigbuckbunnyiphone.smil/chunklist-b400000.m3u8",
urlResolvers: ["httpstreaming","brselect"],
provider: "httpstreaming",
autoPlay: false
},
log: {
level: 'debug',
filter: 'org.osmf.*, org.electroteque.m3u8.*, org.flowplayer.bitrateselect.*'
}
}).ipad();
I would like to configure everything except the url outside of the flowplayer player initialization. And for the player initialization to look something like this:
flowplayer("player", "flowplayer.swf", {
clip: {
url: "http://184.72.239.149/vod/smil:bigbuckbunnyiphone.smil/chunklist-b400000.m3u8",
ipadUrl: "http://184.72.239.149/vod/smil:bigbuckbunnyiphone.smil/chunklist-b400000.m3u8",
}
}).ipad();
I want to configure options globally for all players, and then for specific players to just override options like clip.url.