]> git.sesse.net Git - vlc/blob - share/lua/http/dialogs/input
lua_rc: fix 'stats' and 'info' commands.
[vlc] / share / lua / http / dialogs / input
1 <?vlc --[[
2 vim:syntax=html
3 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 <  input: VLC media player web interface - input selection dialog
5 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
6 <  Copyright (C) 2005-2006 the VideoLAN team
7 <  $Id$
8
9 <  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
10
11 <  This program is free software; you can redistribute it and/or modify
12 <  it under the terms of the GNU General Public License as published by
13 <  the Free Software Foundation; either version 2 of the License, or
14 <  (at your option) any later version.
15
16 <  This program is distributed in the hope that it will be useful,
17 <  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 <  GNU General Public License for more details.
20
21 <  You should have received a copy of the GNU General Public License
22 <  along with this program; if not, write to the Free Software
23 <  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
24 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
25
26 This dialog needs the following dialogs to be fully functional: browse
27 ]]?>
28
29 <div id="input" class="dialog" style="display: none">
30   <div class="title">
31     Input
32     <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('input');"/>
33   </div>
34   <div class="controls">
35     <label for="input_mrl">Input</label>
36     <?vlc if current_page == "vlm" then ?>
37       <input type="text" name="input_mrl" id="input_mrl" size="60" onkeypress="if( event.keyCode == 13 ) vlm_input_change();"/>
38     <?vlc else ?>
39       <input type="text" name="input_mrl" id="input_mrl" size="60" onkeypress="if( event.keyCode == 13 ) in_play();"/>
40     <?vlc end ?>
41     <div>
42     Options
43     <!-- <input type="button" value="Refresh options" onclick="refresh_input_options_list();" /> -->
44     <input type="button" value="Add option" onclick="add_input_option(':option=value');" />
45     <div id="input_options_list"></div>
46     </div>
47     <?vlc if current_page == "vlm" then ?>
48       <input type="button" value="Ok" onclick="vlm_input_change();" />
49       <input type="button" value="Cancel" onclick="hide('input');" />
50       <input type="hidden" id="input_dest" value="" />
51     <?vlc else ?>
52       <input type="button" value="Play" onclick="in_play();" />
53       <input type="button" value="Enqueue" onclick="in_enqueue();" />
54     <?vlc end ?>
55     <br/>
56     <!--<button id="btn_inhide" onclick="hide_input();">
57       Hide
58     </button>-->
59     <button id="btn_file" onclick="hide_input();show('input_file');update_input_file();">
60       File
61     </button>
62     <button id="btn_disc" onclick="hide_input();show('input_disc');update_input_disc();">
63       Disc
64     </button>
65     <button id="btn_network" onclick="hide_input();show('input_network');update_input_net();">
66       Network
67     </button>
68     <button id="btn_fake" onclick="hide_input();show('input_fake');update_input_fake();">
69       Fixed image
70     </button>
71   </div>
72   <div id="input_helper" class="helper" >
73     <div id="input_file" style="display: block">
74       Open File
75       <hr/>
76       <label for="input_file_filename">File name</label>
77       <input type="text" id="input_file_filename" size="60" onchange="update_input_file();" onfocus="update_input_file();"/>
78       <input type="button" id="input_file_browse" value="Browse" onclick="browse( 'input_file_filename' );" />
79       <!-- <hr/>
80       <input type="checkbox" id="input_sub_options" />
81       <label for="input_sub_options">Subtitle options *TODO/FIXME/FIXHTTPD*</label>
82       <br/>
83       <label for="input_sub_file">Subtitles file</label>
84       <input type="text" id="input_sub_file" size="60" />
85       <br/>
86       <label for="input_sub_enc">Subtitles encoding</label>
87       <select id="input_sub_enc">
88         <option></option>
89       </select>
90       <br/>
91       <label for="input_sub_size">Font size</label>
92       <select id="input_sub_size">
93         <option></option>
94       </select>
95       <label for="input_sub_justification">Justification</label>
96       <select id="input_sub_justification">
97         <option></option>
98       </select>
99       <br/>
100       <label for="input_sub_fps">Frames per second</label>
101       <input type="text" id="input_sub_fps" />
102       <label for="input_sub_delay">Delay</label>
103       <input type="text" id="input_sub_delay" />-->
104     </div>
105     <div id="input_disc" style="display: none">
106       Open Disc
107       <hr/>
108       Disc type :
109       <input type="radio" name="input_disc_type" id="input_disc_dvdmenu" value="dvd" onchange="update_input_disc();" />
110       <label for="input_disc_dvdmenu">DVD (menus)</label>
111       <input type="radio" name="input_disc_type" id="input_disc_dvd" value="dvdsimple" onchange="update_input_disc();" />
112       <label for="input_disc_dvd">DVD</label>
113       <input type="radio" name="input_disc_type" id="input_disc_vcd" value="vcd" onchange="update_input_disc();" />
114       <label for="input_disc_vcd">VCD</label>
115       <input type="radio" name="input_disc_type" id="input_disc_cdda" value="cdda" onchange="update_input_disc();" />
116       <label for="input_disc_cdda">Audio CD</label>
117       <hr/>
118       <table>
119         <tr>
120           <td>
121             <label for="input_disc_dev">Device name</label>
122           </td>
123           <td>
124             <input type="text" id="input_disc_dev" onchange="update_input_disc();" />
125           </td>
126         </tr>
127         <tr>
128           <td>
129             <label for="input_disc_title">Title</label>
130           </td>
131           <td>
132             <input type="text" id="input_disc_title" onchange="update_input_disc();" />
133           </td>
134         </tr>
135         <tr>
136           <td>
137             <label for="input_disc_chapter">Chapter</label>
138           </td>
139           <td>
140             <input type="text" id="input_disc_chapter" onchange="update_input_disc();" />
141           </td>
142         </tr>
143         <tr>
144           <td>
145             <label for="input_disc_subtrack">Subtitles track</label>
146           </td>
147           <td>
148              <input type="text" id="input_disc_subtrack" onchange="update_input_disc();" />
149           </td>
150         </tr>
151         <tr>
152           <td>
153             <label for="input_disc_audiotrack">Audio track</label>
154           </td>
155           <td>
156             <input type="text" id="input_disc_audiotrack" onchange="update_input_disc();" />
157           </td>
158         </tr>
159       </table>
160     </div>
161     <div id="input_network" style="display: none">
162       Open Network
163       <hr/>
164       <table>
165         <tr>
166           <td>
167             <input type="radio" name="input_net_type" id="input_net_udp" value="udp" onchange="update_input_net();" />
168             <label for="input_net_udp">UDP/RTP</label>
169           </td>
170           <td>
171             <label for="input_net_udp_port">Port</label>
172             <input type="text" id="input_net_udp_port" size="6" onchange="update_input_net();" />
173             <input type="checkbox" id="input_net_udp_forceipv6" onchange="update_input_net();" />
174             <label for="input_net_udp_forceipv6">Force IPv6</label>
175           </td>
176         </tr>
177         <tr>
178           <td>
179             <input type="radio" name="input_net_type" id="input_net_udpmcast" value="udpmcast" onchange="update_input_net();" />
180             <label for="input_net_udpmcast">UDP/RTP Multicast</label>
181           </td>
182           <td>
183             <label for="input_net_udpmcast_address">Address</label>
184             <input type="text" id="input_net_udpmcast_address" onchange="update_input_net();" />
185             <label for="input_net_udpmcast_port">Port</label>
186             <input type="text" id="input_net_udpmcast_port" size="6" onchange="update_input_net();" />
187           </td>
188         </tr>
189         <tr>
190           <td>
191             <input type="radio" name="input_net_type" id="input_net_http" value="http" onchange="update_input_net();" />
192             <label for="input_net_http">HTTP/HTTPS/FTP/MMS</label>
193           </td>
194           <td>
195             <label for="input_net_http_url">URL</label>
196             <input type="text" id="input_net_http_url" onchange="update_input_net();" />
197           </td>
198         </tr>
199         <tr>
200           <td>
201             <input type="radio" name="input_net_type" id="input_net_rtsp" value="rtsp" onchange="update_input_net();" />
202             <label for="input_net_rtsp">RTSP</label>
203           </td>
204           <td>
205             <label for="input_net_rtsp_url">URL</label>
206             <input type="text" id="input_net_rtsp_url" value="rtsp://" onchange="update_input_net();" />
207           </td>
208         </tr>
209         <tr>
210           <td>
211             <input type="checkbox" id="input_net_timeshift" onchange="update_input_net();" />
212             <label for="input_net_timeshift">Allow timeshifting</label>
213           </td>
214           <td></td>
215         </tr>
216       </table>
217     </div>
218     <div id="input_fake" style="display: none">
219       Fixed image stream (fake)
220       <hr/>
221       <label for="input_fake_filename">Image file name</label>
222       <input type="text" id="input_fake_filename" size="60" onchange="update_input_fake();" onfocus="update_input_fake();"/>
223       <input type="button" id="input_fake_browse" value="Browse" onclick="browse( 'input_fake_filename' );" />
224       <hr/>
225       <label for="input_fake_width">Width</label>
226       <input type="text" id="input_fake_width" size="8" onchange="update_input_fake();" />
227       <label for="input_fake_height">Height</label>
228       <input type="text" id="input_fake_height" size="8" onchange="update_input_fake();" />
229       <label for="input_fake_ar">Aspect ratio</label>
230       <input type="text" id="input_fake_ar" size="8" onchange="update_input_fake();" />
231     </div>
232   </div>
233 </div>