]> git.sesse.net Git - vlc/blob - share/http/index.html
* share/http/index.html: delete/keep commands fix by Torsten Spindler
[vlc] / share / http / index.html
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD  XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10transitional.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
5  <head>
6     <title>VLC media player</title>
7     <link href="/style.css" title="Default" rel="stylesheet" />
8
9     <vlc id="if" param1="url_param"/>
10         <meta http-equiv="refresh" content="0;URL=/" />
11     <vlc id="end" />
12
13     <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move" />
14     <vlc id="set" param1="sout" param2="string" />
15  </head>
16  <body>
17     <div class="left">
18       <div class="sectitle">Playback control</div>
19       <div class="section-controls">
20         <form method="get" action="">
21           <p>
22             <input type="submit" name="control" value="stop" />
23             <input type="submit" name="control" value="pause" />
24             <br />
25               <input type="submit" name="control" value="previous" />
26               <input type="submit" name="control" value="next" />
27           </p>
28             <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
29             <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
30             <br />
31               <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
32           </form>
33         <br />
34           <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
35       </div> <!-- End section -->
36
37       <div class="sectitle">Misc controls</div>
38       <div class="section-controls">
39         <form method="get" action="">
40           Vol: <input type="text" name="value" size="5"/>
41                <input type="submit" value="Set" /><br /> (0 -&gt;1024)<br />
42            <br />
43           <input type="submit" name="control" value="fullscreen" />
44         </form>
45       </div>
46
47       <div class="sectitle">Status</div>
48       <div class="section">
49         State: <vlc id="value" param1="stream_state" /><br />
50         Length: <span id="length"><vlc id="value" param1="stream_length" /> s
51               </span><br />
52         Time: <span id="time"><vlc id="value" param1="stream_time" /> s</span><br />
53         Volume: <span id="volume"><vlc id="value" param1="volume" /></span>
54         <br /><a href="info.html">Information</a>  
55       </div>
56     
57       <div><a href="/admin/">Administration Page</a></div>
58
59     </div> <!-- End left -->
60
61     <div class ="right">
62       <h2><a href="http://www.videolan.org/">VLC media player
63           <vlc id="value" param1="version" /></a> (http interface)
64       </h2>
65
66       <div class="sectitle">Add</div>
67       <div class="section">
68         <form method="get" action="" enctype="text/plain" >
69           <table class="add">
70             <tr>
71               <td>Add a MRL (Media Resource Locator) to the playlist</td>
72               <td><input type="text" name="mrl" size="40" /><input type="submit" name="control" value="add" /></td>
73             </tr>
74             <tr>
75               <td>Stream Output:</td>
76               <td><input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" /><input type="submit" name="control" value="sout" /></td>
77             </tr>
78           </table>
79         </form>
80       </div>
81
82       <div class="section">
83         <table>
84             <tr>
85               <td>
86                 <table>
87                   <tr>
88                     <td>
89                       <form method="get" action="">
90                         <input type="submit" name="control" value="sort" /> by
91                         <select name="type">
92                           <option value="title">title</option>
93                           <option value="group">group</option>
94                           <option value="author">author</option>
95                           <option value="shuffle">shuffle</option>
96                         </select> with
97                         <select name="order">
98                           <option value="0">normal order</option>
99                           <option value="1">reverse order</option>
100                         </select>
101                       </form>
102                     </td>
103                     <td>
104                       <form method="get" action="">
105                          Move the item number
106                         <input type="text" name="psz_pos" size="5" /> to 
107                         <input type="text" name="psz_newpos" size="5" /> 
108                         <input type="submit" name="control" value="move" />
109                       </form>
110                     </td>
111                   </tr>
112                 </table>
113               </td>
114             </tr>
115           <form method="get" action="">
116             <tr> 
117               <td>
118                 <table>
119                   <vlc id="rpn" param1="0"/>
120                   <vlc id="foreach" param1="pl" param2="playlist" />
121                   <tr class="<vlc id="if" param1="pl.index 2 % 0 =" />ligne1<vlc id="else" />ligne2<vlc id="end" />">
122                     <td>
123                       <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
124                       <vlc id="if" param1="pl.current" />
125                         <strong>
126                       <vlc id="end" />
127                       <a href="?control=play&amp;item=<vlc id="value" param1="pl.index" />">
128                       <vlc id="value" param1="pl.index" /> - <vlc id="value" param1="pl.uri" /><vlc id="if" param1="pl.uri value pl.name value strcmp"/>  (<vlc id="value" param1="pl.name" />)<vlc id="end"/></a>
129                       <vlc id="if" param1="pl.current" />
130                         </strong>
131                       <vlc id="end" />
132                     </td>
133                   </tr>
134                   <vlc id="rpn" param1="1 +"/>
135                   <vlc id="end" />
136                   <vlc id="if" param1="0 ="/>
137                   <tr class="ligne1">
138                     <td>empty playlist</td>
139                   </tr>
140                   <vlc id="end"/>
141                 </table>
142               </td>
143             </tr>
144             <tr>  
145               <td>
146                    <input type="submit" name="control" value="delete" />
147                    <input type="submit" name="control" value="keep" />
148               </td>
149             </tr>
150           </form>
151         </table>
152       </div>
153     </div>
154     <hr/>
155     <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>
156
157     <script language="javascript" type="text/javascript">
158       got_time = <vlc id="value" param1="stream_time" />;
159       hours = Math.floor(got_time/ 3600);
160       minutes = Math.floor((got_time/60) % 60);
161       seconds = got_time % 60;
162       if ( hours < 10 ) hours = "0" + hours;
163       if ( minutes < 10 ) minutes = "0" + minutes;
164       if ( seconds < 10 ) seconds = "0" + seconds;
165       document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
166       got_length = <vlc id="value" param1="stream_length" />;
167       hours = Math.floor(got_length/ 3600);
168       minutes = Math.floor((got_length/60) % 60);
169       seconds = got_length % 60;
170       if ( hours < 10 ) hours = "0" + hours;
171       if ( minutes < 10 ) minutes = "0" + minutes;
172       if ( seconds < 10 ) seconds = "0" + seconds;
173       document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
174       got_volume = <vlc id="value" param1="volume" />;
175       document.getElementById( 'volume').innerHTML = Math.floor(got_volume * 100/1024) + " %";
176     </script>
177 </body>
178 </html>