1 <?xml version="1.0" encoding="iso-8859-1" ?>
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 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
12 <!-- Work around. should be done in the code -->
13 <vlc id="if" param1="url_param"/>
14 <meta http-equiv="Refresh" content="0;url=/" />
16 <meta http-equiv="Refresh" content="60;url=/">
19 <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move" />
20 <vlc id="set" param1="sout" param2="string" />
21 <script type="text/javascript">
23 function changeMe(item)
25 if (item.parentNode.lastChild.style.display=="none")
27 item.parentNode.lastChild.style.display="block";
29 item.src="cone_minus.png";
33 item.parentNode.lastChild.style.display="none";
35 item.src="cone_plus.png";
47 <div class="sectitle">Playback control</div>
48 <div class="section-controls">
50 <form method="get" action="" style="display: inline">
51 <input type="submit" name="control" value="stop" />
53 <form method="get" action="" style="display: inline">
54 <input type="submit" name="control" value="pause" />
58 <form method="get" action="" style="display: inline">
59 <input type="submit" name="control" value="previous" />
61 <form method="get" action="" style="display: inline">
62 <input type="submit" name="control" value="next" />
66 <form method="get" action="" style="display: inline">
67 <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
69 <form method="get" action="" style="display: inline">
70 <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
74 <form method="get" action="">
75 <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
76 <input type="submit" value="Seek" />
80 <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
82 </div> <!-- End section -->
84 <div class="sectitle">Misc controls</div>
85 <div class="section-controls">
86 <form method="get" action="">
87 <input type="hidden" name="control" value="volume" />
88 Vol: <input type="text" name="value" size="5"/>
89 <input type="submit" value="Set" /><br /> (0 - 1024)<br /><span class="small">(for example: "536", "-12", "+42", "36%")</span>
92 <form method="get" action="">
93 <input type="submit" name="control" value="fullscreen" />
97 <div class="sectitle">Status</div>
99 State: <vlc id="value" param1="stream_state" /><br />
100 Length: <span id="length"><vlc id="value" param1="stream_length" /> s
102 Time: <span id="time"><vlc id="value" param1="stream_time" /> s</span><br />
103 Volume: <span id="volume"><vlc id="value" param1="volume" /></span>
104 <br /><a href="info.html">Information</a>
107 <div class="section"><a href="/admin/">Administration Page</a></div>
112 <!-- main content -->
114 <h2 class="title"><a href="http://www.videolan.org/">VLC media player
115 <vlc id="value" param1="version" /></a> (http interface)
118 <div class="sectitle">Add</div>
119 <div class="section">
122 <form method="get" action="?" enctype="text/plain" >
123 <td>Add a MRL (Media Resource Locator) to the playlist</td>
125 <input type="hidden" name="control" value="add" />
126 <input type="text" name="mrl" size="40" />
127 <input type="submit" value="Add" />
132 <form method="get" action="" enctype="text/plain" >
133 <td>Stream Output:</td>
135 <input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" />
136 <input type="submit" value="Sout" />
143 <div class="section">
144 <form method="get" action="">
146 <vlc id="rpn" param1="first_item 0 store" />
147 <vlc id="rpn" param1="last_depth 0 store" />
148 <vlc id="foreach" param1="pl" param2="playlist" />
149 <vlc id="if" param1="pl.depth value last_depth value <" />
150 <vlc id="rpn" param1="pl.depth value ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
151 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
156 <vlc id="if" param1="pl.type value 'Node' strcmp" />
157 <vlc id="rpn" param1="1 +" />
159 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
160 <vlc id="if" param1="pl.current" />
163 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
164 <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>
165 <vlc id="if" param1="pl.current" />
171 <vlc id="if" param1="first_item value 0 ="/>
172 <img alt="Cone" src="cone_plus.png" />
174 <vlc id="rpn" param1="first_item 1 store" />
176 <img alt="[-]" src="cone_minus.png" onclick='changeMe(this)'/>
177 <vlc id="if" param1="pl.depth value 0 >"/>
178 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
179 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
181 <vlc id="value" param1="pl.name" />
182 <vlc id="if" param1="pl.depth value 0 >"/>
185 (<vlc id="value" param1="pl.i_children" />
186 item<vlc id="if" param1="pl.i_children 1 >" />s<vlc id="end" />)
189 <vlc id="if" param1="pl.i_children 0 !=" />
197 <vlc id="rpn" param1="last_depth pl.depth value store" />
200 <vlc id="rpn" param1="0 ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
201 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
206 <input type="submit" name="control" value="delete" />
207 <input type="submit" name="control" value="empty" />
208 <input type="submit" name="control" value="keep" />
209 <input type="submit" name="control" value="sort" /> by
211 <option value="title">title</option>
212 <option value="shuffle">shuffle</option>
214 <select name="order">
215 <option value="0">normal order</option>
216 <option value="1">reverse order</option>
222 <!-- end main content -->
224 <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>
226 <script type="text/javascript">
227 got_time = <vlc id="value" param1="stream_time" />;
228 hours = Math.floor(got_time/ 3600);
229 minutes = Math.floor((got_time/60) % 60);
230 seconds = got_time % 60;
231 if ( hours < 10 ) hours = "0" + hours;
232 if ( minutes < 10 ) minutes = "0" + minutes;
233 if ( seconds < 10 ) seconds = "0" + seconds;
234 document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
235 got_length = <vlc id="value" param1="stream_length" />;
236 hours = Math.floor(got_length/ 3600);
237 minutes = Math.floor((got_length/60) % 60);
238 seconds = got_length % 60;
239 if ( hours < 10 ) hours = "0" + hours;
240 if ( minutes < 10 ) minutes = "0" + minutes;
241 if ( seconds < 10 ) seconds = "0" + seconds;
242 document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
243 got_volume = <vlc id="value" param1="volume" />;
244 document.getElementById( 'volume').innerHTML = Math.ceil(got_volume * 400/1024) + " %";