New "Flash player" page for the HTTP interface. (Allows playback even if you don...
[vlc.git] / share / http / flash.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
2 \r
3 <html xmlns="http://www.w3.org/1999/xhtml">\r
4 \r
5 <head>\r
6   <title>VLC media player - Web Interface with Flash Viewer</title>\r
7   <meta http-equiv="Content-Type" content="text/html; charset=<vlc id="value" param1="charset"/>" />\r
8   <link href="style.css" rel="stylesheet" type="text/css" />\r
9   <!--[if IE ]>\r
10   <link href="iehacks.css" rel="stylesheet" type="text/css" />\r
11   <![endif]-->\r
12   <script type="text/javascript" src="js/functions.js"></script>\r
13 <script type="text/javascript">\r
14 // <![CDATA[\r
15 host = document.location.toString().replace( /http:\/\//, '' ).replace( /[:/].*/, '' );\r
16 // ]]>\r
17 </script>\r
18 </head>\r
19 \r
20 <body onload="hide('playlist');">\r
21   <vlc id="include" param1="dialogs/browse" />\r
22   <vlc id="include" param1="dialogs/main" />\r
23   <vlc id="include" param1="dialogs/input" />\r
24   <vlc id="include" param1="dialogs/playlist" />\r
25 \r
26   <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
27 \r
28   <div style='height: 100%; width: 100%;'>\r
29   <object type="application/x-shockwave-flash" data="http://flowplayer.sourceforge.net/video/FlowPlayer.swf" width="100%" height="600px" id="FlowPlayer">\r
30           <param name="allowScriptAccess" value="sameDomain" />\r
31           <param name="movie" value="http://flowplayer.sourceforge.net/video/FlowPlayer.swf" />\r
32           <param name="quality" value="high" />\r
33     <!--          <param name="scale" value="noScale" />-->\r
34           <param name="wmode" value="transparent" />\r
35         <!--  <param name="flashvars" value="config={ loop: false, initialScale: \'fit\', autoPlay: false, configInject: true}" />-->\r
36   <script type="text/javascript">\r
37 // <![CDATA[\r
38   document.write( '' +\r
39 '         <param name="flashvars" value="config={ loop: false, initialScale: \'fit\', autoPlay: true, playList: [{ url: \'http://' + host + ':8081/stream.flv\', controlEnabled: true}] }" />' );\r
40 // ]]>\r
41 </script>\r
42   </object>\r
43   </div>\r
44   <vlc id="include" param1="dialogs/footer" />\r
45 </body>\r
46 \r
47 </html>\r