Page 1 of 1

HTML page with VLC

Posted: 22 Apr 2009 11:56
by Stuntman
Hello,
I'm trying to set up a small streaming portal with some videos. For this I want to use the activeX plugin for firefox.
http://wiki.videolan.org/Documentation: ... d_above.29
I'm trying to catch up with the use of the functions but I'm not good at developing, so if someone can give a hand and show me a basic example.
I shortly manage to do this, which is working but when I pause and restart the video, the stream is skipping a few seconds of the video.

Code: Select all

<script language="Javascript"> <!-- var vlc = document.getElementById("vlc"); vlc.audio.toggleMute(); vlc.versionInfo(); vlc.playlist.play(); vlc.playlist.stop(); vlc.playlist.togglePause(); !--> </script> <center> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="640" height="480" id="vlc" target="rtsp://172.30.13.100/film" > </embed> <br /> <input type="button" value="Play" onclick="vlc.playlist.play();" /> <input type="button" value="Pause" onclick="vlc.playlist.togglePause();" /> <input type="button" value="Stop" onclick="vlc.playlist.stop();" /> <input type="button" value="Info" onclick="vlc.versionInfo();" /> <br /> Video information : <table> <tr><td>Status</td><td><span id="play_status">Unknown</span></td></tr> <tr><td>Time</td><td><span id="time">--:--:--</span></td></tr> <tr><td>Total Length</td><td><span id="length">--:--:--</span></td></tr> <tr><td>Volume</td><td><span id="volume_status"></span></td></tr> </table> </center>