index.html 7.47 KB
Newer Older
zorglub's avatar
zorglub committed
1
2
3
4
5
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD  XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
Anil Daoud's avatar
Anil Daoud committed
6
    <title>VLC media player</title>
7
8
    <link href="/style.css" title="Default" rel="stylesheet" />

9
10
11
12
    <vlc id="if" param1="url_param"/>
        <meta http-equiv="refresh" content="0;URL=/" />
    <vlc id="end" />

13
    <vlc id="control" param1="stop,pause,previous,next,add,sout,play,delete,empty,seek,fullscreen,keep,volume,sort,move" />
14
    <vlc id="set" param1="sout" param2="string" />
zorglub's avatar
zorglub committed
15
16
 </head>
 <body>
17
18
19
20
21
    <div class="left">
      <div class="sectitle">Playback control</div>
      <div class="section-controls">
        <form method="get" action="">
          <p>
sigmunau's avatar
sigmunau committed
22
23
            <input type="submit" name="control" value="stop" />
            <input type="submit" name="control" value="pause" />
24
25
26
27
28
29
30
31
            <br />
              <input type="submit" name="control" value="previous" />
              <input type="submit" name="control" value="next" />
	  </p>
            <input type="submit" name="seek_value" value="-1min"/><input type="hidden" name="control" value="seek"/>
            <input type="submit" name="seek_value" value="+1min"/><input type="hidden" name="control" value="seek"/>
	    <br />
              <input type="text" name="seek_value" size="14"/><input type="hidden" name="control" value="seek"/>
sigmunau's avatar
sigmunau committed
32
          </form>
33
34
35
        <br />
          <span class="small">( Seek Textbox: for example "+12min 42sec", "01:13:43", "-12%" etc... )</span>
      </div> <!-- End section -->
36

37
38
39
      <div class="sectitle">Misc controls</div>
      <div class="section-controls">
        <form method="get" action="">
dionoea's avatar
dionoea committed
40
               <input type="hidden" name="control" value="volume" />
41
42
	  Vol: <input type="text" name="value" size="5"/>
               <input type="submit" value="Set" /><br /> (0 -&gt;1024)<br />
dionoea's avatar
dionoea committed
43
44
45
        </form>
	<br />
	<form method="get" action="">
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
          <input type="submit" name="control" value="fullscreen" />
        </form>
      </div>

      <div class="sectitle">Status</div>
      <div class="section">
        State: <vlc id="value" param1="stream_state" /><br />
        Length: <span id="length"><vlc id="value" param1="stream_length" /> s
	      </span><br />
        Time: <span id="time"><vlc id="value" param1="stream_time" /> s</span><br />
        Volume: <span id="volume"><vlc id="value" param1="volume" /></span>
        <br /><a href="info.html">Information</a>  
      </div>
    
      <div><a href="/admin/">Administration Page</a></div>

    </div> <!-- End left -->
63

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
    <div class ="right">
      <h2><a href="http://www.videolan.org/">VLC media player
          <vlc id="value" param1="version" /></a> (http interface)
      </h2>

      <div class="sectitle">Add</div>
      <div class="section">
        <form method="get" action="" enctype="text/plain" >
          <table class="add">
            <tr>
              <td>Add a MRL (Media Resource Locator) to the playlist</td>
              <td><input type="text" name="mrl" size="40" /><input type="submit" name="control" value="add" /></td>
            </tr>
            <tr>
              <td>Stream Output:</td>
              <td><input type="text" name="sout" size="40" value="<vlc id="get" param1="sout" param2="string" />" /><input type="submit" name="control" value="sout" /></td>
            </tr>
          </table>
        </form>
      </div>

      <div class="section">
86
        <table>
87
88
            <tr>
              <td>
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
                <table>
		  <tr>
                    <td>
                      <form method="get" action="">
                        <input type="submit" name="control" value="sort" /> by
                        <select name="type">
                          <option value="title">title</option>
                          <option value="group">group</option>
                          <option value="author">author</option>
                          <option value="shuffle">shuffle</option>
                        </select> with
                        <select name="order">
                          <option value="0">normal order</option>
                          <option value="1">reverse order</option>
                        </select>
		      </form>
                    </td>
                    <td>
                      <form method="get" action="">
                         Move the item number
		        <input type="text" name="psz_pos" size="5" /> to 
		        <input type="text" name="psz_newpos" size="5" /> 
		        <input type="submit" name="control" value="move" />
                      </form>
                    </td>
                  </tr>
		</table>
116
117
              </td>
            </tr>
118
119
	  <form method="get" action="">
            <tr> 
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
              <td>
                <table>
                  <vlc id="rpn" param1="0"/>
                  <vlc id="foreach" param1="pl" param2="playlist" />
                  <tr class="<vlc id="if" param1="pl.index 2 % 0 =" />ligne1<vlc id="else" />ligne2<vlc id="end" />">
                    <td>
                      <input type="checkbox" name="item" value="<vlc id="value" param1="pl.index" />"/>
                      <vlc id="if" param1="pl.current" />
                        <strong>
                      <vlc id="end" />
                      <a href="?control=play&amp;item=<vlc id="value" param1="pl.index" />">
                      <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>
                      <vlc id="if" param1="pl.current" />
                        </strong>
                      <vlc id="end" />
                    </td>
                  </tr>
                  <vlc id="rpn" param1="1 +"/>
                  <vlc id="end" />
                  <vlc id="if" param1="0 ="/>
                  <tr class="ligne1">
                    <td>empty playlist</td>
                  </tr>
                  <vlc id="end"/>
                </table>
              </td>
            </tr>
            <tr>  
              <td>
149
150
                   <input type="submit" name="control" value="delete" />
                   <input type="submit" name="control" value="keep" />
151
152
              </td>
            </tr>
153
154
	  </form>
        </table>
155
      </div>
zorglub's avatar
zorglub committed
156
    </div>
157
    <hr/>
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
    <p style="text-align:center;font-size:1.2em;"> <vlc id="value" param1="copyright" /> </p>

    <script language="javascript" type="text/javascript">
      got_time = <vlc id="value" param1="stream_time" />;
      hours = Math.floor(got_time/ 3600);
      minutes = Math.floor((got_time/60) % 60);
      seconds = got_time % 60;
      if ( hours < 10 ) hours = "0" + hours;
      if ( minutes < 10 ) minutes = "0" + minutes;
      if ( seconds < 10 ) seconds = "0" + seconds;
      document.getElementById('time').innerHTML = hours+":"+minutes+":"+seconds;
      got_length = <vlc id="value" param1="stream_length" />;
      hours = Math.floor(got_length/ 3600);
      minutes = Math.floor((got_length/60) % 60);
      seconds = got_length % 60;
      if ( hours < 10 ) hours = "0" + hours;
      if ( minutes < 10 ) minutes = "0" + minutes;
      if ( seconds < 10 ) seconds = "0" + seconds;
      document.getElementById('length').innerHTML = hours+":"+minutes+":"+seconds;
      got_volume = <vlc id="value" param1="volume" />;
      document.getElementById( 'volume').innerHTML = Math.floor(got_volume * 100/1024) + " %";
    </script>
180
181
</body>
</html>