simple.html 982 Bytes
Newer Older
1
<!DOCTYPE html>
2
<html>
3
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
4 5
<title>Simplest VLC plugin test</title>

6
<script type="text/javascript">
7 8
function play(tgt)
{
9
    var uri = "http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4";
10
    if (document.all) tgt += "_IE"
11 12 13 14
    var vlc = document.getElementById(tgt);
   // alert(vlc);
    vlc.playlist.add(uri);
    vlc.playlist.play();
15
}
16 17 18
function reload()
{
    document.body.innerHTML = "";
19 20 21 22 23 24
    setTimeout("document.location.reload();", 500);
}
</script>
<body onload="play('vlc1')">
<h1>Simplest VLC plugin test</h1>

25 26 27 28 29 30
<object id='vlc1_IE' height="240" width="320" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921">
    <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
        width="320"
        height="240"
        id="vlc1" />
</object>
31 32 33 34 35 36 37 38

<hr>
<button onclick="play('vlc1')">play in VLC1</button>
<br><br>
 
<button onclick="reload()">reload</button>
</body>
</html>