1 <?xml version="1.0" encoding="UTF-8" ?>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10transitional.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
9 <title>VLC media player</title>
10 <link href="style.css" title="Default" rel="stylesheet" type="text/css" />
11 <!-- Work around. should be done in the code -->
12 <vlc id="if" param1="url_param"/>
13 <meta http-equiv="Refresh" content="0;url=/old/" />
15 <meta http-equiv="Refresh" content="60;url=/old/">
18 <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move" />
19 <vlc id="set" param1="sout" param2="string" />
20 <script type="text/javascript">
22 function changeMe(item)
24 if (item.parentNode.lastChild.style.display=="none")
26 item.parentNode.lastChild.style.display="block";
28 item.src="cone_minus.png";
32 item.parentNode.lastChild.style.display="none";
34 item.src="cone_plus.png";
46 <div class="sectitle">Playback control</div>
47 <div class="section-controls">
49 <form method="get" action="" style="display: inline">
50 <input type="submit" name="control" value="stop" />
52 <form method="get" action="" style="display: inline">
53 <input type="submit" name="control" value="pause" />
57 <form method="get" action="" style="display: inline">
58 <input type="submit" name="control" value="previous" />
60 <form method="get" action="" style="display: inline">
61 <input type="submit" name="control" value="next" />
65 <form method="get" action="" style="display: inline">
66 <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
68 <form method="get" action="" style="display: inline">
69 <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
73 <form method="get" action="">
74 <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
75 <input type="submit" value="Seek" />
79 <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
81 </div> <!-- End section -->
83 <div class="sectitle">Misc controls</div>
84 <div class="section-controls">
85 <form method="get" action="">
86 <input type="hidden" name="control" value="volume" />
87 Vol: <input type="text" name="value" size="5"/>
88 <input type="submit" value="Set" /><br /> (0 - 1024)<br /><span class="small">(for example: "536", "-12", "+42", "36%")</span>
91 <form method="get" action="">
92 <input type="submit" name="control" value="fullscreen" />
96 <div class="sectitle">Status</div>
98 State: <vlc id="value" param1="stream_state" /><br />
99 Length: <span id="length"><vlc id="value" param1="stream_length" /> s
101 Time: <span id="time"><vlc id="value" param1="stream_time" /> s</span><br />
102 Volume: <span id="volume"><vlc id="value" param1="volume" /></span>
103 <br /><a href="info.html">Information</a>
106 <div class="section"><a href="admin/">Administration Page</a></div>
111 <!-- main content -->
113 <h2 class="title"><a href="http://www.videolan.org/">VLC media player
114 <vlc id="value" param1="version" /></a> (http interface)
117 <div class="sectitle">Add</div>
118 <div class="section">
121 <form method="get" action="?" enctype="text/plain" >
122 <td>Add a MRL (Media Resource Locator) to the playlist</td>
124 <input type="hidden" name="control" value="add" />
125 <input type="text" name="mrl" size="40" />
126 <input type="submit" value="Add" />
131 <form method="get" action="" enctype="text/plain" >
132 <td>Stream Output:</td>
134 <input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" />
135 <input type="submit" value="Sout" />
142 <div class="section">
143 <form method="get" action="">
145 <vlc id="rpn" param1="first_item 0 store" />
146 <vlc id="rpn" param1="last_depth 0 store" />
147 <vlc id="foreach" param1="pl" param2="playlist" />
148 <vlc id="if" param1="pl.depth value last_depth value <" />
149 <vlc id="rpn" param1="pl.depth value ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
150 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
155 <vlc id="if" param1="pl.type value 'Node' strcmp" />
156 <vlc id="rpn" param1="1 +" />
158 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
159 <vlc id="if" param1="pl.current" />
162 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
163 <vlc id="value" param1="pl.name" /><vlc id="if" param1="pl.uri value pl.name value strcmp"/> (<vlc id="value" param1="pl.uri" />)<vlc id="end"/></a>
164 <vlc id="if" param1="pl.current" />
170 <vlc id="if" param1="first_item value 0 ="/>
171 <img alt="Cone" src="cone_plus.png" />
173 <vlc id="rpn" param1="first_item 1 store" />
175 <img alt="[-]" src="cone_minus.png" onclick='changeMe(this)'/>
176 <vlc id="if" param1="pl.depth value 0 >"/>
177 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
178 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
180 <vlc id="value" param1="pl.name" />
181 <vlc id="if" param1="pl.depth value 0 >"/>
184 (<vlc id="value" param1="pl.i_children" />
185 item<vlc id="if" param1="pl.i_children 1 >" />s<vlc id="end" />)
188 <vlc id="if" param1="pl.i_children 0 !=" />
196 <vlc id="rpn" param1="last_depth pl.depth value store" />
199 <vlc id="rpn" param1="0 ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
200 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
205 <input type="submit" name="control" value="delete" />
206 <input type="submit" name="control" value="empty" />
207 <input type="submit" name="control" value="keep" />
208 <input type="submit" name="control" value="sort" /> by
210 <option value="title">title</option>
211 <option value="shuffle">shuffle</option>
213 <select name="order">
214 <option value="0">normal order</option>
215 <option value="1">reverse order</option>
221 <!-- end main content -->
223 <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>
225 <script type="text/javascript">
226 got_time = <vlc id="value" param1="stream_time" />;
227 hours = Math.floor(got_time/ 3600);
228 minutes = Math.floor((got_time/60) % 60);
229 seconds = got_time % 60;
230 if ( hours < 10 ) hours = "0" + hours;
231 if ( minutes < 10 ) minutes = "0" + minutes;
232 if ( seconds < 10 ) seconds = "0" + seconds;
233 document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
234 got_length = <vlc id="value" param1="stream_length" />;
235 hours = Math.floor(got_length/ 3600);
236 minutes = Math.floor((got_length/60) % 60);
237 seconds = got_length % 60;
238 if ( hours < 10 ) hours = "0" + hours;
239 if ( minutes < 10 ) minutes = "0" + minutes;
240 if ( seconds < 10 ) seconds = "0" + seconds;
241 document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
242 got_volume = <vlc id="value" param1="volume" />;
243 document.getElementById( 'volume').innerHTML = Math.ceil(got_volume * 400/1024) + " %";