![]() |
||
VLCcontrols : embed VLC and controls in your webpagesIntroductionVLCcontrols.js is a small 'plugin' for the VLCobject javascript library that add commons controls to the standard VLC plugin like play, stop, volume, seekbar...Also it provides a small, higher level and cross-browser API to control your VLC plugin in any webpage. The code is under BSD, so you can redistribute it and/or modify it under the terms of the BSD License. The code is still experimental and needs many improvements, feel free to send us your suggestions and corrections at contact@revolunet.com. We hope this script will make VLC browser plugin more popular hence improving VLC plugin penetration over the web. Enjoy ;) Features listEasy to useIncluded Seekbar with our SimpleSlider.js slider library Tested on Internet Explorer 6, Firefox 2, Opera, Safari (XP) Small API to control the plugin VLC options management API :var controls = new VLCcontrols(vlcobject); wraps controls to an existing VLCobjectcontrols.options.set("start-time", 50); set a VLC option; here the media will start at 50secs. see VLC options wiki controls.options.set("directx-wallpaper"); set a VLC option; here the directx wallpaper output will be actived see VLC options wiki controls.options.clear(); reset all VLC options controls.play(uri); launch the movie in the plugin controls.stop(); stop playing the movie
Examples :usage : extract the zip contents somewhere on your site directorySimply load the player with VLCobject and add basic controls :
This text is replaced by the VLC player.
This example can be viewed here another example, the file is played automatically :)
This text is replaced by the VLC player.
This example can be viewed here yet another exemple, the file is launched automatically at start and some options are passed to the VLC plugin :)
This text is replaced by the VLC player.
you can test this example here Another example, with subtitles, transcoding/streaming, local file recording... advanced example Todo :There's many things still to do with this code, we're workin on, and we need your help :Licence :The code is under BSD, so you can redistribute it and/or modify it under the terms of the BSD License.DownloadChange logWho use it ?Commentaires | ||