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">
40 <form method="get" action="" style="display: inline">
41 <input type="submit" name="control" value="stop" />
43 <form method="get" action="" style="display: inline">
44 <input type="submit" name="control" value="pause" />
48 <form method="get" action="" style="display: inline">
49 <input type="submit" name="control" value="previous" />
51 <form method="get" action="" style="display: inline">
52 <input type="submit" name="control" value="next" />
56 <form method="get" action="" style="display: inline">
57 <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
59 <form method="get" action="" style="display: inline">
60 <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
64 <form method="get" action="">
65 <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
66 <input type="submit" value="Seek" />
70 <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
72 </div> <!-- End section -->
74 <div class="sectitle">Misc controls</div>
75 <div class="section-controls">
76 <form method="get" action="">
77 <input type="hidden" name="control" value="volume" />
78 Vol: <input type="text" name="value" size="5"/>
79 <input type="submit" value="Set" /><br /> (0 - 1024)<br /><span class="small">(for exemple: "536", "-12", "+42", "36%")</span>
82 <form method="get" action="">
83 <input type="submit" name="control" value="fullscreen" />
87 <div class="sectitle">Status</div>
89 State: <vlc id="value" param1="stream_state" /><br />
90 Length: <span id="length"><vlc id="value" param1="stream_length" /> s
92 Time: <span id="time"><vlc id="value" param1="stream_time" /> s</span><br />
93 Volume: <span id="volume"><vlc id="value" param1="volume" /></span>
94 <br /><a href="info.html">Information</a>
97 <div class="section"><a href="/admin/">Administration Page</a></div>
102 <!-- main content -->
104 <h2 class="title"><a href="http://www.videolan.org/">VLC media player
105 <vlc id="value" param1="version" /></a> (http interface)
108 <div class="sectitle">Add</div>
109 <div class="section">
110 <form method="get" action="" enctype="text/plain" >
113 <td>Add a MRL (Media Resource Locator) to the playlist</td>
114 <td><input type="text" name="mrl" size="40" /> <input type="submit" name="control" value="add" /></td>
117 <td>Stream Output:</td>
118 <td><input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" /> <input type="submit" name="control" value="sout" /></td>
124 <div class="section">
125 <form method="get" action="">
127 <vlc id="rpn" param1="first_item 0 store" />
128 <vlc id="rpn" param1="last_depth 0 store" />
129 <vlc id="foreach" param1="pl" param2="playlist" />
130 <vlc id="if" param1="pl.depth value last_depth value <" />
131 <vlc id="rpn" param1="pl.depth value ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
132 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
137 <vlc id="if" param1="pl.type value 'Node' strcmp" />
138 <vlc id="rpn" param1="1 +" />
140 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
141 <vlc id="if" param1="pl.current" />
144 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
145 <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>
146 <vlc id="if" param1="pl.current" />
152 <form method="get" action="">
153 <vlc id="if" param1="first_item value 0 ="/>
154 <img alt="Cone" src="cone_plus.png" />
156 <vlc id="rpn" param1="first_item 1 store" />
158 <img alt="[-]" src="cone_minus.png" onclick='changeMe(this)'/>
159 <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" />)
161 <input type="hidden" name="item" value="<vlc id="value" param1="pl.index" />" />
162 <input type="submit" name="control" value="sort" /> by
164 <option value="title">title</option>
165 <option value="shuffle">shuffle</option>
167 <select name="order">
168 <option value="0">normal order</option>
169 <option value="1">reverse order</option>
173 <vlc id="if" param1="pl.i_children 0 !=" />
181 <vlc id="rpn" param1="last_depth pl.depth value store" />
184 <vlc id="rpn" param1="0 ':' last_depth value 1 - ':' 1 strcat strcat strcat strcat" />
185 <vlc id="foreach" param1="the_final_countdown" param2="integer" />
190 <input type="submit" name="control" value="delete" />
191 <input type="submit" name="control" value="empty" />
192 <input type="submit" name="control" value="keep" />
196 <!-- end main content -->
198 <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>
200 <script type="text/javascript">
201 got_time = <vlc id="value" param1="stream_time" />;
202 hours = Math.floor(got_time/ 3600);
203 minutes = Math.floor((got_time/60) % 60);
204 seconds = got_time % 60;
205 if ( hours < 10 ) hours = "0" + hours;
206 if ( minutes < 10 ) minutes = "0" + minutes;
207 if ( seconds < 10 ) seconds = "0" + seconds;
208 document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
209 got_length = <vlc id="value" param1="stream_length" />;
210 hours = Math.floor(got_length/ 3600);
211 minutes = Math.floor((got_length/60) % 60);
212 seconds = got_length % 60;
213 if ( hours < 10 ) hours = "0" + hours;
214 if ( minutes < 10 ) minutes = "0" + minutes;
215 if ( seconds < 10 ) seconds = "0" + seconds;
216 document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
217 got_volume = <vlc id="value" param1="volume" />;
218 document.getElementById( 'volume').innerHTML = Math.ceil(got_volume * 100/1024) + " %";