javascript - Unable to add mp4 video to hd to sd flow player script -


i want use flow player script : sample

i have 2 video 1 sd ( x.mp4 ) , second 1 hd ( x.hd.mp4 ) video

i want same functionality need video only.

bellow javascript code

<script>

flowplayer("httpstreaming-hd", "http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", { plugins: {

    f4m: { url: "flowplayer.f4m-3.2.10.swf" },      httpstreaming: { url: "flowplayer.httpstreaming-3.2.11.swf" },      // "tube" skin     controls: { url: "flowplayer.controls-tube-3.2.16.swf"},     bitrateselect: {         url: "flowplayer.bitrateselect-3.2.14.swf",          // show hd button in controlbar         hdbutton: { place: 'controls'},          // show selected file in content box         // omitted in production         onstreamswitchbegin: function (newitem, currentitem) {             $f("httpstreaming-hd").getplugin('content').sethtml("will switch to: " +                 newitem.streamname + " " + currentitem.streamname);         },         onstreamswitch: function (newitem) {             $f("httpstreaming-hd").getplugin('content').sethtml("switched to: " +                 newitem.streamname);         }     },     // content box display selected bitrate     // omitted in production     content: {         url: "flowplayer.content-3.2.9.swf",         bottom: 30,         left: 0,         width: 420,         height: 150,         backgroundcolor: 'transparent',         backgroundgradient: 'none',         border: 0,         textdecoration: 'outline',         style: {             body: {                 fontsize: 14,                 fontfamily: 'arial',                 textalign: 'center',                 color: '#ffffff'             }         }     } }, clip: {     url: "sample2.f4m",     provider: 'httpstreaming',      // need 2 urlresolvers     urlresolvers: ['f4m','bitrateselect'],      // directory manifest , video fragments stored     baseurl: "http://stream.flowplayer.org/httpstreaming/",      autoplay: false,      // configuring sd , hd properties mandatory     bitrates: [         { url : 'video/vid.mp4' ,bitrate: 500, label: '500k', sd: true},         {url : 'video/vid.hd.mp4' , bitrate: 1500, label: '1500k', hd: true}     ]  } , playlist: {  'url': 'video/vid.mp4', 'provider': 'httpstreaming', 'main_video': true } 

});

</script>
in advance.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -