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">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6 <title>VLC media player</title>
7 <link href="/style.css" title="Default" rel="stylesheet" />
9 <vlc id="if" param1="url_param"/>
10 <meta http-equiv="refresh" content="0;URL=/" />
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" />
18 <div class="sectitle">Playback control</div>
19 <div class="section-controls">
20 <form method="get" action="">
22 <input type="submit" name="control" value="stop" />
23 <input type="submit" name="control" value="pause" />
25 <input type="submit" name="control" value="previous" />
26 <input type="submit" name="control" value="next" />
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"/>
31 <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
34 <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
35 </div> <!-- End section -->
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 ->1024)<br />
43 <input type="submit" name="control" value="fullscreen" />
47 <div class="sectitle">Status</div>
49 State: <vlc id="value" param1="stream_state" /><br />
50 Length: <span id="length"><vlc id="value" param1="stream_length" /> s
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>
57 <div><a href="/admin/">Administration Page</a></div>
59 </div> <!-- End left -->
62 <h2><a href="http://www.videolan.org/">VLC media player
63 <vlc id="value" param1="version" /></a> (http interface)
66 <div class="sectitle">Add</div>
68 <form method="get" action="" enctype="text/plain" >
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>
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>
83 <form method="get" action="">
89 <input type="submit" name="control" value="sort" /> by
91 <option value="title">title</option>
92 <option value="group">group</option>
93 <option value="author">author</option>
94 <option value="shuffle">shuffle</option>
97 <option value="0">normal order</option>
98 <option value="1">reverse order</option>
102 <form method="get" action="">
104 <input type="text" name="psz_pos" size="5" /> to
105 <input type="text" name="psz_newpos" size="5" />
106 <input type="submit" name="control" value="move" />
115 <vlc id="rpn" param1="0"/>
116 <vlc id="foreach" param1="pl" param2="playlist" />
117 <tr class="<vlc id="if" param1="pl.index 2 % 0 =" />ligne1<vlc id="else" />ligne2<vlc id="end" />">
119 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
120 <vlc id="if" param1="pl.current" />
123 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
124 <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>
125 <vlc id="if" param1="pl.current" />
130 <vlc id="rpn" param1="1 +"/>
132 <vlc id="if" param1="0 ="/>
134 <td>empty playlist</td>
142 <input type="submit" name="control" value="delete" />
143 <input type="submit" name="control" value="keep" />
151 <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>
153 <script language="javascript" type="text/javascript">
154 got_time = <vlc id="value" param1="stream_time" />;
155 hours = Math.floor(got_time/ 3600);
156 minutes = Math.floor((got_time/60) % 60);
157 seconds = got_time % 60;
158 if ( hours < 10 ) hours = "0" + hours;
159 if ( minutes < 10 ) minutes = "0" + minutes;
160 if ( seconds < 10 ) seconds = "0" + seconds;
161 document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
162 got_length = <vlc id="value" param1="stream_length" />;
163 hours = Math.floor(got_length/ 3600);
164 minutes = Math.floor((got_length/60) % 60);
165 seconds = got_length % 60;
166 if ( hours < 10 ) hours = "0" + hours;
167 if ( minutes < 10 ) minutes = "0" + minutes;
168 if ( seconds < 10 ) seconds = "0" + seconds;
169 document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
170 got_volume = <vlc id="value" param1="volume" />;
171 document.getElementById( 'volume').innerHTML = Math.floor(got_volume * 100/1024) + " %";