[vlc-commits] Add a very simple example

Julien Bouquillon git at videolan.org
Wed Jan 9 18:08:48 CET 2013


npapi-vlc | branch: master | Julien Bouquillon <contact at revolunet.com> | Wed Jan  9 18:07:50 2013 +0100| [2e4284760d4e619ef6e397f2f5bb7780f980cf6c] | committer: Jean-Baptiste Kempf

Add a very simple example

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=2e4284760d4e619ef6e397f2f5bb7780f980cf6c
---

 share/test/simple.html |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/share/test/simple.html b/share/test/simple.html
new file mode 100644
index 0000000..84ff5bd
--- /dev/null
+++ b/share/test/simple.html
@@ -0,0 +1,36 @@
+<html>
+<title>Simplest VLC plugin test</title>
+<script language="javascript">
+
+function play(tgt) {
+    var uri = "http://ipod.free.fr/itrafik.mp4";
+    if (document.all) tgt += "_IE"
+    var tgt = document.getElementById(tgt);
+   // alert(tgt);
+    if (document.all) tgt.playlist.add(uri,uri, new Array());
+    else     tgt.playlist.add(uri,uri, "");
+    tgt.playlist.play(); 
+}
+function reload() {
+    document.body.innerHTML="";
+    setTimeout("document.location.reload();", 500);
+}
+</script>
+<body onload="play('vlc1')">
+<h1>Simplest VLC plugin test</h1>
+
+<OBJECT id='vlc1_IE'  codeBase=http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab height=240 width=320 classid=clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921>
+<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
+    width="320"
+    height="240"
+    id="vlc1">
+</embed>
+</OBJECT> 
+
+<hr>
+<button onclick="play('vlc1')">play in VLC1</button>
+<br><br>
+ 
+<button onclick="reload()">reload</button>
+</body>
+</html>



More information about the vlc-commits mailing list