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">
7 <title>VLC media player</title>
8 <link href="/style.css" title="Default" rel="stylesheet" type="text/css" />
9 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10 <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move" />
11 <vlc id="set" param1="sout" param2="string" />
12 <script type="text/javascript">
14 function changeMe(item)
16 if (item.parentNode.parentNode.lastChild.style.display=="none")
18 item.parentNode.parentNode.lastChild.style.display="block";
20 item.src="cone_minus.png";
24 item.parentNode.parentNode.lastChild.style.display="none";
26 item.src="cone_plus.png";
37 <div class="sectitle">Playback control</div>
38 <div class="section-controls">
39 <form method="get" action="">
41 <input type="submit" name="control" value="stop" />
42 <input type="submit" name="control" value="pause" />
44 <input type="submit" name="control" value="previous" />
45 <input type="submit" name="control" value="next" />
47 <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
48 <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
50 <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
53 <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
54 </div> <!-- End section -->
56 <div class="sectitle">Misc controls</div>
57 <div class="section-controls">
58 <form method="get" action="">
59 <input type="hidden" name="control" value="volume" />
60 Vol: <input type="text" name="value" size="5"/>
61 <input type="submit" value="Set" /><br /> (0 - 1024)<br /><span class="small">(for exemple: "536", "-12", "+42", "36%")</span>
64 <form method="get" action="">
65 <input type="submit" name="control" value="fullscreen" />
69 <div class="sectitle">Status</div>
71 State: <vlc id="value" param1="stream_state" /><br />
72 Length: <span id="length"><vlc id="value" param1="stream_length" /> s
74 Time: <span id="time"><vlc id="value" param1="stream_time" /> s</span><br />
75 Volume: <span id="volume"><vlc id="value" param1="volume" /></span>
76 <br /><a href="info.html">Information</a>
79 <div class="section"><a href="/admin/">Administration Page</a></div>
86 <h2 class="title"><a href="http://www.videolan.org/">VLC media player
87 <vlc id="value" param1="version" /></a> (http interface)
90 <div class="sectitle">Add</div>
92 <form method="get" action="" enctype="text/plain" >
95 <td>Add a MRL (Media Resource Locator) to the playlist</td>
96 <td><input type="text" name="mrl" size="40" /><input type="submit" name="control" value="add" /></td>
99 <td>Stream Output:</td>
100 <td><input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" /><input type="submit" name="control" value="sout" /></td>
106 <div class="section">
107 <form method="get" action="">
109 <vlc id="rpn" param1="first_item 0 store" />
110 <vlc id="rpn" param1="last_depth 0 store" />
111 <vlc id="foreach" param1="pl" param2="playlist" />
112 <vlc id="if" param1="pl.depth value last_depth value <" />
113 <vlc id="rpn" param1="pl.depth value ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
114 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
119 <vlc id="if" param1="pl.type value 'Node' strcmp" />
120 <vlc id="rpn" param1="1 +" />
122 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
123 <vlc id="if" param1="pl.current" />
126 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
127 <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>
128 <vlc id="if" param1="pl.current" />
134 <form method="get" action="">
135 <img alt="[-]" src="cone_minus.png" onclick='changeMe(this)'/>
136 <vlc id="if" param1="first_item value 0 ="/>
138 <vlc id="rpn" param1="first_item 1 store" />
140 <vlc id="value" param1="pl.name" /> (<vlc id="value" param1="pl.i_children" /> item<vlc id="if" param1="pl.i_children 1 >" />s<vlc id="end" />)
142 <input type="hidden" name="item" value="<vlc id="value" param1="pl.index" />" />
143 <input type="submit" name="control" value="sort" /> by
145 <option value="title">title</option>
146 <option value="shuffle">shuffle</option>
148 <select name="order">
149 <option value="0">normal order</option>
150 <option value="1">reverse order</option>
154 <vlc id="if" param1="pl.i_children 0 !=" />
162 <vlc id="rpn" param1="last_depth pl.depth value store" />
165 <vlc id="rpn" param1="0 ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
166 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
171 <input type="submit" name="control" value="delete" />
172 <input type="submit" name="control" value="empty" />
173 <input type="submit" name="control" value="keep" />
177 <!-- end main content -->
179 <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>
181 <script type="text/javascript">
182 got_time = <vlc id="value" param1="stream_time" />;
183 hours = Math.floor(got_time/ 3600);
184 minutes = Math.floor((got_time/60) % 60);
185 seconds = got_time % 60;
186 if ( hours < 10 ) hours = "0" + hours;
187 if ( minutes < 10 ) minutes = "0" + minutes;
188 if ( seconds < 10 ) seconds = "0" + seconds;
189 document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
190 got_length = <vlc id="value" param1="stream_length" />;
191 hours = Math.floor(got_length/ 3600);
192 minutes = Math.floor((got_length/60) % 60);
193 seconds = got_length % 60;
194 if ( hours < 10 ) hours = "0" + hours;
195 if ( minutes < 10 ) minutes = "0" + minutes;
196 if ( seconds < 10 ) seconds = "0" + seconds;
197 document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
198 got_volume = <vlc id="value" param1="volume" />;
199 document.getElementById( 'volume').innerHTML = Math.ceil(got_volume * 100/1024) + " %";