]> git.sesse.net Git - vlc/commitdiff
New "Flash player" page for the HTTP interface. (Allows playback even if you don...
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 17 Feb 2007 18:42:13 +0000 (18:42 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 17 Feb 2007 18:42:13 +0000 (18:42 +0000)
share/http/dialogs/footer
share/http/flash.html [new file with mode: 0644]

index 78613b1f0fc571567a63bfbbb6cff58569de0c8f..03cd4df06eb8f35a0a06b66e8a9c8d333f7c5afc 100644 (file)
@@ -30,6 +30,7 @@ This dialog needs the following dialogs to be fully functional: <none>
   <a href="/">main VLC interface</a> -
   <a href="/vlm.html">VLM interface</a> -
   <a href="/mosaic.html">Mosaic wizard</a> -
+  <a href="/flash.html">Flash based remote playback</a> -
   <a href="http://www.videolan.org">VideoLAN website</a>
   <br />
   <vlc id="value" param1="copyright" />
diff --git a/share/http/flash.html b/share/http/flash.html
new file mode 100644 (file)
index 0000000..5bcb48a
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+\r
+<head>\r
+  <title>VLC media player - Web Interface with Flash Viewer</title>\r
+  <meta http-equiv="Content-Type" content="text/html; charset=<vlc id="value" param1="charset"/>" />\r
+  <link href="style.css" rel="stylesheet" type="text/css" />\r
+  <!--[if IE ]>\r
+  <link href="iehacks.css" rel="stylesheet" type="text/css" />\r
+  <![endif]-->\r
+  <script type="text/javascript" src="js/functions.js"></script>\r
+<script type="text/javascript">\r
+// <![CDATA[\r
+host = document.location.toString().replace( /http:\/\//, '' ).replace( /[:/].*/, '' );\r
+// ]]>\r
+</script>\r
+</head>\r
+\r
+<body onload="hide('playlist');">\r
+  <vlc id="include" param1="dialogs/browse" />\r
+  <vlc id="include" param1="dialogs/main" />\r
+  <vlc id="include" param1="dialogs/input" />\r
+  <vlc id="include" param1="dialogs/playlist" />\r
+\r
+  <input id="sout_mrl" type="hidden" value=":sout=#transcode{vcodec=FLV1,acodec=mp3,channels=1,samplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/stream.flv}" />\r
+\r
+  <div style='height: 100%; width: 100%;'>\r
+  <object type="application/x-shockwave-flash" data="http://flowplayer.sourceforge.net/video/FlowPlayer.swf" width="100%" height="600px" id="FlowPlayer">\r
+         <param name="allowScriptAccess" value="sameDomain" />\r
+         <param name="movie" value="http://flowplayer.sourceforge.net/video/FlowPlayer.swf" />\r
+         <param name="quality" value="high" />\r
+    <!--         <param name="scale" value="noScale" />-->\r
+         <param name="wmode" value="transparent" />\r
+       <!--  <param name="flashvars" value="config={ loop: false, initialScale: \'fit\', autoPlay: false, configInject: true}" />-->\r
+  <script type="text/javascript">\r
+// <![CDATA[\r
+  document.write( '' +\r
+'        <param name="flashvars" value="config={ loop: false, initialScale: \'fit\', autoPlay: true, playList: [{ url: \'http://' + host + ':8081/stream.flv\', controlEnabled: true}] }" />' );\r
+// ]]>\r
+</script>\r
+  </object>\r
+  </div>\r
+  <vlc id="include" param1="dialogs/footer" />\r
+</body>\r
+\r
+</html>\r