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";
45 program="<vlc id="get" param1="program" param2="int" />
46 test2="<vlc id="get" param1="test2" param2="int" />
49 <div class="sectitle">Playback control</div>
50 <div class="section-controls">
52 <form method="get" action="" style="display: inline">
53 <input type="submit" name="control" value="stop" />
55 <form method="get" action="" style="display: inline">
56 <input type="submit" name="control" value="pause" />
60 <form method="get" action="" style="display: inline">
61 <input type="submit" name="control" value="previous" />
63 <form method="get" action="" style="display: inline">
64 <input type="submit" name="control" value="next" />
68 <form method="get" action="" style="display: inline">
69 <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
71 <form method="get" action="" style="display: inline">
72 <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
76 <form method="get" action="">
77 <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
78 <input type="submit" value="Seek" />
82 <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
84 </div> <!-- End section -->
86 <div class="sectitle">Misc controls</div>
87 <div class="section-controls">
88 <form method="get" action="">
89 <input type="hidden" name="control" value="volume" />
90 Vol: <input type="text" name="value" size="5"/>
91 <input type="submit" value="Set" /><br /> (0 - 1024)<br /><span class="small">(for exemple: "536", "-12", "+42", "36%")</span>
94 <form method="get" action="">
95 <input type="submit" name="control" value="fullscreen" />
99 <div class="sectitle">Status</div>
100 <div class="section">
101 State: <vlc id="value" param1="stream_state" /><br />
102 Length: <span id="length"><vlc id="value" param1="stream_length" /> s
104 Time: <span id="time"><vlc id="value" param1="stream_time" /> s</span><br />
105 Volume: <span id="volume"><vlc id="value" param1="volume" /></span>
106 <br /><a href="info.html">Information</a>
109 <div class="section"><a href="/admin/">Administration Page</a></div>
114 <!-- main content -->
116 <h2 class="title"><a href="http://www.videolan.org/">VLC media player
117 <vlc id="value" param1="version" /></a> (http interface)
120 <div class="sectitle">Add</div>
121 <div class="section">
124 <form method="get" action="?" enctype="text/plain" >
125 <td>Add a MRL (Media Resource Locator) to the playlist</td>
127 <input type="hidden" name="control" value="add" />
128 <input type="text" name="mrl" size="40" />
129 <input type="submit" value="Add" />
134 <form method="get" action="" enctype="text/plain" >
135 <td>Stream Output:</td>
137 <input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" />
138 <input type="submit" value="Sout" />
145 <div class="section">
146 <form method="get" action="">
148 <vlc id="rpn" param1="first_item 0 store" />
149 <vlc id="rpn" param1="last_depth 0 store" />
150 <vlc id="foreach" param1="pl" param2="playlist" />
151 <vlc id="if" param1="pl.depth value last_depth value <" />
152 <vlc id="rpn" param1="pl.depth value ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
153 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
158 <vlc id="if" param1="pl.type value 'Node' strcmp" />
159 <vlc id="rpn" param1="1 +" />
161 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
162 <vlc id="if" param1="pl.current" />
165 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
166 <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>
167 <vlc id="if" param1="pl.current" />
173 <vlc id="if" param1="first_item value 0 ="/>
174 <img alt="Cone" src="cone_plus.png" />
176 <vlc id="rpn" param1="first_item 1 store" />
178 <img alt="[-]" src="cone_minus.png" onclick='changeMe(this)'/>
179 <vlc id="if" param1="pl.depth value 0 >"/>
180 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
181 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
183 <vlc id="value" param1="pl.name" />
184 <vlc id="if" param1="pl.depth value 0 >"/>
187 (<vlc id="value" param1="pl.i_children" />
188 item<vlc id="if" param1="pl.i_children 1 >" />s<vlc id="end" />)
191 <vlc id="if" param1="pl.i_children 0 !=" />
199 <vlc id="rpn" param1="last_depth pl.depth value store" />
202 <vlc id="rpn" param1="0 ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
203 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
208 <input type="submit" name="control" value="delete" />
209 <input type="submit" name="control" value="empty" />
210 <input type="submit" name="control" value="keep" />
211 <input type="submit" name="control" value="sort" /> by
213 <option value="title">title</option>
214 <option value="shuffle">shuffle</option>
216 <select name="order">
217 <option value="0">normal order</option>
218 <option value="1">reverse order</option>
224 <!-- end main content -->
226 <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>
228 <script type="text/javascript">
229 got_time = <vlc id="value" param1="stream_time" />;
230 hours = Math.floor(got_time/ 3600);
231 minutes = Math.floor((got_time/60) % 60);
232 seconds = got_time % 60;
233 if ( hours < 10 ) hours = "0" + hours;
234 if ( minutes < 10 ) minutes = "0" + minutes;
235 if ( seconds < 10 ) seconds = "0" + seconds;
236 document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
237 got_length = <vlc id="value" param1="stream_length" />;
238 hours = Math.floor(got_length/ 3600);
239 minutes = Math.floor((got_length/60) % 60);
240 seconds = got_length % 60;
241 if ( hours < 10 ) hours = "0" + hours;
242 if ( minutes < 10 ) minutes = "0" + minutes;
243 if ( seconds < 10 ) seconds = "0" + seconds;
244 document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
245 got_volume = <vlc id="value" param1="volume" />;
246 document.getElementById( 'volume').innerHTML = Math.ceil(got_volume * 100/1024) + " %";