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" />
11 <vlc id="if" param1="url_param"/>
12 <meta http-equiv="refresh" content="0;URL=/" />
15 <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move" />
16 <vlc id="set" param1="sout" param2="string" />
23 <div class="sectitle">Playback control</div>
24 <div class="section-controls">
25 <form method="get" action="">
27 <input type="submit" name="control" value="stop" />
28 <input type="submit" name="control" value="pause" />
30 <input type="submit" name="control" value="previous" />
31 <input type="submit" name="control" value="next" />
33 <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
34 <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
36 <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
39 <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
40 </div> <!-- End section -->
42 <div class="sectitle">Misc controls</div>
43 <div class="section-controls">
44 <form method="get" action="">
45 <input type="hidden" name="control" value="volume" />
46 Vol: <input type="text" name="value" size="5"/>
47 <input type="submit" value="Set" /><br /> (0 - 1024)<br /><span class="small">(for exemple: "536", "-12", "+42", "36%")</span>
50 <form method="get" action="">
51 <input type="submit" name="control" value="fullscreen" />
55 <div class="sectitle">Status</div>
57 State: <vlc id="value" param1="stream_state" /><br />
58 Length: <span id="length"><vlc id="value" param1="stream_length" /> s
60 Time: <span id="time"><vlc id="value" param1="stream_time" /> s</span><br />
61 Volume: <span id="volume"><vlc id="value" param1="volume" /></span>
62 <br /><a href="info.html">Information</a>
65 <div class="section"><a href="/admin/">Administration Page</a></div>
72 <h2 class="title"><a href="http://www.videolan.org/">VLC media player
73 <vlc id="value" param1="version" /></a> (http interface)
76 <div class="sectitle">Add</div>
78 <form method="get" action="" enctype="text/plain" >
81 <td>Add a MRL (Media Resource Locator) to the playlist</td>
82 <td><input type="text" name="mrl" size="40" /><input type="submit" name="control" value="add" /></td>
85 <td>Stream Output:</td>
86 <td><input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" /><input type="submit" name="control" value="sout" /></td>
99 <form method="get" action="">
100 <input type="submit" name="control" value="sort" /> by
102 <option value="title">title</option>
103 <option value="group">group</option>
104 <option value="author">author</option>
105 <option value="shuffle">shuffle</option>
107 <select name="order">
108 <option value="0">normal order</option>
109 <option value="1">reverse order</option>
114 <form method="get" action="">
116 <input type="text" name="psz_pos" size="5" /> to
117 <input type="text" name="psz_newpos" size="5" />
118 <input type="submit" name="control" value="move" />
127 <form method="get" action="">
129 <vlc id="rpn" param1="0"/>
130 <vlc id="foreach" param1="pl" param2="playlist" />
131 <tr class="<vlc id="if" param1="pl.index 2 % 0 =" />line1<vlc id="else" />line2<vlc id="end" />">
133 <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
134 <vlc id="if" param1="pl.current" />
137 <a href="?control=play&item=<vlc id="value" param1="pl.index" />">
138 <vlc id="value" param1="pl.index" /> - <vlc id="value" param1="pl.uri" /><vlc id="if" param1="pl.uri value pl.name value strcmp"/> (<vlc id="value" param1="pl.name" />)<vlc id="end"/></a>
139 <vlc id="if" param1="pl.current" />
144 <vlc id="rpn" param1="1 +"/>
146 <vlc id="if" param1="0 ="/>
148 <td>empty playlist</td>
152 <input type="submit" name="control" value="delete" />
153 <input type="submit" name="control" value="keep" />
160 <!-- end main content -->
162 <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>
164 <script language="javascript" type="text/javascript">
165 got_time = <vlc id="value" param1="stream_time" />;
166 hours = Math.floor(got_time/ 3600);
167 minutes = Math.floor((got_time/60) % 60);
168 seconds = got_time % 60;
169 if ( hours < 10 ) hours = "0" + hours;
170 if ( minutes < 10 ) minutes = "0" + minutes;
171 if ( seconds < 10 ) seconds = "0" + seconds;
172 document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
173 got_length = <vlc id="value" param1="stream_length" />;
174 hours = Math.floor(got_length/ 3600);
175 minutes = Math.floor((got_length/60) % 60);
176 seconds = got_length % 60;
177 if ( hours < 10 ) hours = "0" + hours;
178 if ( minutes < 10 ) minutes = "0" + minutes;
179 if ( seconds < 10 ) seconds = "0" + seconds;
180 document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
181 got_volume = <vlc id="value" param1="volume" />;
182 document.getElementById( 'volume').innerHTML = Math.ceil(got_volume * 100/1024) + " %";