1 <script type=
"text/javascript">
3 var stream_server
= window
.location
.hostname
;
4 function configureStreamWindow(stream_protocol
,stream_server
,stream_port
,stream_file
){
5 $('#stream_protocol').val(stream_protocol
);
6 $('#stream_host').val(stream_server
);
7 $('#stream_port').val(stream_port
);
8 $('#stream_file').val(stream_file
);
11 $('#window_streams').dialog({
16 "<?vlc gettext("Close
") ?>":function(){
17 $(this).dialog("close");
21 $('#window_stream_config').dialog({
26 "<?vlc gettext("Okay
") ?>":function(){
27 $(this).dialog('close');
31 $('#button_create_stream').click(function(){
32 $('#window_create_stream').dialog('open');
35 $('#button_clear_streams').click(function(){
36 sendVLMCmd('del all');
39 $('#button_config_streams').click(function(){
40 $('#window_stream_config').dialog('open');
43 $('#button_create_mosaic').click(function(){
44 $('#window_mosaic').dialog('open');
47 $('#button_refresh_streams').click(function(){
51 $('#stream_host').val(stream_server
);
55 <div id=
"stream_status_" style=
"visibility:hidden;display:none;">
56 <h3><a href=
"#" id=
"stream_title_"></a></h3>
58 <div id=
"button_stream_stop_" class=
"button icon ui-widget ui-state-default" title=
"<?vlc gettext("Stop
") ?>"><span class=
"ui-icon ui-icon-stop"></span></div>
59 <div id=
"button_stream_play_" class=
"button icon ui-widget ui-state-default" title=
"<?vlc gettext("Play
") ?>"><span class=
"ui-icon ui-icon-play"></span></div>
60 <div id=
"button_stream_loop_" class=
"button icon ui-widget ui-state-default" title=
"<?vlc gettext("Loop
") ?>"><span class=
"ui-icon ui-icon-refresh"></span></div>
61 <div id=
"button_stream_delete_" class=
"button icon ui-widget ui-state-default" title=
"<?vlc gettext("Remove Stream
") ?>"><span class=
"ui-icon ui-icon-trash"></span></div>
62 <div>Title:
<span id=
"stream_file_"></span></div>
63 <div style=
"width: 260px; margin: 5px 0px 10px 0px;">
64 <div id=
"stream_pos_"></div>
65 <?vlc gettext(
"Time:")
?> <span id=
"stream_current_time_">00:
00:
00</span> /
<span id=
"stream_total_time_">00:
00:
00</span>
69 <div id=
"window_streams" title=
"<?vlc gettext("Manage Streams
") ?>">
70 <div id=
"button_create_stream" class=
"button icon ui-widget ui-state-default" title=
"<?vlc gettext("Create New Stream
") ?>" opendialog=
"window_create_stream"><span class=
"ui-icon ui-icon-plus"></span></div>
71 <div id=
"button_create_mosaic" class=
"button icon ui-widget ui-state-default" title=
"<?vlc gettext("Create Mosaic
") ?>" opendialog=
"window_create_mosaiac"><span class=
"ui-icon ui-icon-calculator"></span></div>
72 <div id=
"button_clear_streams" class=
"button icon ui-widget ui-state-default" title=
"<?vlc gettext("Delete All Streams
") ?>"><span class=
"ui-icon ui-icon-trash"></span></div>
73 <div id=
"button_config_streams" class=
"button icon ui-widget ui-state-default" title=
"<?vlc gettext("Configure Stream Defaults
") ?>"><span class=
"ui-icon ui-icon-wrench"></span></div>
74 <div id=
"button_refresh_streams" class=
"button ui-widget ui-state-default ui-corner-all" title=
"<?vlc gettext("Refresh Streams
") ?>"><span class=
"ui-icon ui-icon-arrowrefresh-1-n"></span></div>
75 <div id=
"stream_info">
80 <div id=
"window_stream_config" title=
"<?vlc gettext("Stream Input Configuration
") ?>">
83 <td><?vlc gettext(
"Protocol")
?></td>
84 <td><input type=
"text" name=
"stream_protocol" id=
"stream_protocol" value=
"http" /></td>
87 <td><?vlc gettext(
"Host")
?></td>
88 <td><input type=
"text" name=
"stream_host" id=
"stream_host" value=
"" /></td>
91 <td><?vlc gettext(
"Port")
?></td>
92 <td><input type=
"text" name=
"stream_port" id=
"stream_port" value=
"8081" /></td>
95 <td><?vlc gettext(
"File")
?></td>
96 <td><input type=
"text" name=
"stream_file" id=
"stream_file" value=
"stream.flv" /></td>