]> git.sesse.net Git - vlc/blob - share/http-lua/dialogs/input
Mozilla : use \n
[vlc] / share / http-lua / 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 (MRL)</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       <input type="button" value="Ok" onclick="vlm_input_change();" />
39       <input type="button" value="Cancel" onclick="hide('input');" />
40       <input type="hidden" id="input_dest" value="" />
41     <?vlc else ?>
42       <input type="text" name="input_mrl" id="input_mrl" size="60" onkeypress="if( event.keyCode == 13 ) in_play();"/>
43       <input type="button" value="Play" onclick="in_play();" />
44       <input type="button" value="Enqueue" onclick="in_enqueue();" />
45     <?vlc end ?>
46     <br/>
47     <!--<button id="btn_inhide" onclick="hide_input();">
48       Hide
49     </button>-->
50     <button id="btn_file" onclick="hide_input();show('input_file');update_input_file();">
51       File
52     </button>
53     <button id="btn_disc" onclick="hide_input();show('input_disc');update_input_disc();">
54       Disc
55     </button>
56     <button id="btn_network" onclick="hide_input();show('input_network');update_input_net();">
57       Network
58     </button>
59     <button id="btn_fake" onclick="hide_input();show('input_fake');update_input_fake();">
60       Fixed image
61     </button>
62   </div>
63   <div id="input_helper" class="helper" >
64     <div id="input_file" style="display: block">
65       Open File
66       <hr/>
67       <label for="input_file_filename">File name</label>
68       <input type="text" id="input_file_filename" size="60" onchange="update_input_file();" onfocus="update_input_file();"/>
69       <input type="button" id="input_file_browse" value="Browse" onclick="browse( 'input_file_filename' );" />
70       <!-- <hr/>
71       <input type="checkbox" id="input_sub_options" />
72       <label for="input_sub_options">Subtitle options *TODO/FIXME/FIXHTTPD*</label>
73       <br/>
74       <label for="input_sub_file">Subtitles file</label>
75       <input type="text" id="input_sub_file" size="60" />
76       <br/>
77       <label for="input_sub_enc">Subtitles encoding</label>
78       <select id="input_sub_enc">
79         <option></option>
80       </select>
81       <br/>
82       <label for="input_sub_size">Font size</label>
83       <select id="input_sub_size">
84         <option></option>
85       </select>
86       <label for="input_sub_justification">Justification</label>
87       <select id="input_sub_justification">
88         <option></option>
89       </select>
90       <br/>
91       <label for="input_sub_fps">Frames per second</label>
92       <input type="text" id="input_sub_fps" />
93       <label for="input_sub_delay">Delay</label>
94       <input type="text" id="input_sub_delay" />-->
95     </div>
96     <div id="input_disc" style="display: none">
97       Open Disc
98       <hr/>
99       Disc type :
100       <input type="radio" name="input_disc_type" id="input_disc_dvdmenu" value="dvd" onchange="update_input_disc();" />
101       <label for="input_disc_dvdmenu">DVD (menus)</label>
102       <input type="radio" name="input_disc_type" id="input_disc_dvd" value="dvdsimple" onchange="update_input_disc();" />
103       <label for="input_disc_dvd">DVD</label>
104       <input type="radio" name="input_disc_type" id="input_disc_vcd" value="vcd" onchange="update_input_disc();" />
105       <label for="input_disc_vcd">VCD</label>
106       <input type="radio" name="input_disc_type" id="input_disc_cdda" value="cdda" onchange="update_input_disc();" />
107       <label for="input_disc_cdda">Audio CD</label>
108       <hr/>
109       <table>
110         <tr>
111           <td>
112             <label for="input_disc_dev">Device name</label>
113           </td>
114           <td>
115             <input type="text" id="input_disc_dev" onchange="update_input_disc();" />
116           </td>
117         </tr>
118         <tr>
119           <td>
120             <label for="input_disc_title">Title</label>
121           </td>
122           <td>
123             <input type="text" id="input_disc_title" onchange="update_input_disc();" />
124           </td>
125         </tr>
126         <tr>
127           <td>
128             <label for="input_disc_chapter">Chapter</label>
129           </td>
130           <td>
131             <input type="text" id="input_disc_chapter" onchange="update_input_disc();" />
132           </td>
133         </tr>
134         <tr>
135           <td>
136             <label for="input_disc_subtrack">Subtitles track</label>
137           </td>
138           <td>
139              <input type="text" id="input_disc_subtrack" onchange="update_input_disc();" />
140           </td>
141         </tr>
142         <tr>
143           <td>
144             <label for="input_disc_audiotrack">Audio track</label>
145           </td>
146           <td>
147             <input type="text" id="input_disc_audiotrack" onchange="update_input_disc();" />
148           </td>
149         </tr>
150       </table>
151     </div>
152     <div id="input_network" style="display: none">
153       Open Network
154       <hr/>
155       <table>
156         <tr>
157           <td>
158             <input type="radio" name="input_net_type" id="input_net_udp" value="udp" onchange="update_input_net();" />
159             <label for="input_net_udp">UDP/RTP</label>
160           </td>
161           <td>
162             <label for="input_net_udp_port">Port</label>
163             <input type="text" id="input_net_udp_port" size="6" onchange="update_input_net();" />
164             <input type="checkbox" id="input_net_udp_forceipv6" onchange="update_input_net();" />
165             <label for="input_net_udp_forceipv6">Force IPv6</label>
166           </td>
167         </tr>
168         <tr>
169           <td>
170             <input type="radio" name="input_net_type" id="input_net_udpmcast" value="udpmcast" onchange="update_input_net();" />
171             <label for="input_net_udpmcast">UDP/RTP Multicast</label>
172           </td>
173           <td>
174             <label for="input_net_udpmcast_address">Address</label>
175             <input type="text" id="input_net_udpmcast_address" onchange="update_input_net();" />
176             <label for="input_net_udpmcast_port">Port</label>
177             <input type="text" id="input_net_udpmcast_port" size="6" onchange="update_input_net();" />
178           </td>
179         </tr>
180         <tr>
181           <td>
182             <input type="radio" name="input_net_type" id="input_net_http" value="http" onchange="update_input_net();" />
183             <label for="input_net_http">HTTP/HTTPS/FTP/MMS</label>
184           </td>
185           <td>
186             <label for="input_net_http_url">URL</label>
187             <input type="text" id="input_net_http_url" onchange="update_input_net();" />
188           </td>
189         </tr>
190         <tr>
191           <td>
192             <input type="radio" name="input_net_type" id="input_net_rtsp" value="rtsp" onchange="update_input_net();" />
193             <label for="input_net_rtsp">RTSP</label>
194           </td>
195           <td>
196             <label for="input_net_rtsp_url">URL</label>
197             <input type="text" id="input_net_rtsp_url" value="rtsp://" onchange="update_input_net();" />
198           </td>
199         </tr>
200         <tr>
201           <td>
202             <input type="checkbox" id="input_net_timeshift" onchange="update_input_net();" />
203             <label for="input_net_timeshift">Allow timeshifting</label>
204           </td>
205           <td></td>
206         </tr>
207       </table>
208     </div>
209     <div id="input_fake" style="display: none">
210       Fixed image stream (fake)
211       <hr/>
212       <label for="input_fake_filename">Image file name</label>
213       <input type="text" id="input_fake_filename" size="60" onchange="update_input_fake();" onfocus="update_input_fake();"/>
214       <input type="button" id="input_fake_browse" value="Browse" onclick="browse( 'input_fake_filename' );" />
215       <hr/>
216       <label for="input_fake_width">Width</label>
217       <input type="text" id="input_fake_width" size="8" onchange="update_input_fake();" />
218       <label for="input_fake_height">Height</label>
219       <input type="text" id="input_fake_height" size="8" onchange="update_input_fake();" />
220       <label for="input_fake_ar">Aspect ratio</label>
221       <input type="text" id="input_fake_ar" size="8" onchange="update_input_fake();" />
222     </div>
223   </div>
224 </div>