The code is:
Code: Select all
<html>
<title>VLC Mozilla test</title>
<body>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
width="640"
height="480"
id="vlc"
src="Peguin.MPG">
</embed>
<script language="Javascript">
function play()
{
alert("play");
var vlc = document.getElementById("vlc");
vlc.playlist.play();
}
function pause()
{
var vlc = document.getElementById("vlc");
vlc.playlist.pause();
}
function addlist()
{
var vlc = document.getElementById("vlc");
vlc.playlist.add("Peguin.MPG");
}
</script>
<br><br>
<input type="button" value="add" onclick="addlist()">
<input type="button" value="play" onclick="play()">
<input type="button" value="pause" onclick="pause()">
</body>
</html>
I am using firefox 3.0.4
Plugin used: VLC Multimedia Plug-in
File name: nswrapper_32_32.libvlcplugin.so
Version 0.9.9 Grishenko