From: Antoine Cellerier Date: Fri, 27 Jan 2006 13:48:28 +0000 (+0000) Subject: * : it's now possible to enter a batch of commands or export the VLM X-Git-Tag: 0.9.0-test0~12624 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=758190ee3f1e5cf2a176ce47420cc08bfa0918a1;p=vlc * : it's now possible to enter a batch of commands or export the VLM configuration --- diff --git a/share/http/dialogs/vlm b/share/http/dialogs/vlm index 910008d508..499843bc42 100644 --- a/share/http/dialogs/vlm +++ b/share/http/dialogs/vlm @@ -51,6 +51,9 @@ sout and vlmelements . +
@@ -134,6 +137,12 @@ sout and vlmelements .
+
diff --git a/share/http/js/vlm.js b/share/http/js/vlm.js index 835040ce6c..bc7b5a8e20 100644 --- a/share/http/js/vlm.js +++ b/share/http/js/vlm.js @@ -59,6 +59,7 @@ function hide_vlm_add() document.getElementById( 'vlm_add_broadcast' ).style.display = 'none'; document.getElementById( 'vlm_add_vod' ).style.display = 'none'; document.getElementById( 'vlm_add_schedule' ).style.display = 'none'; + document.getElementById( 'vlm_add_other' ).style.display = 'none'; } function toggle_schedule_date() @@ -246,6 +247,12 @@ function update_vlm_add_schedule() } } +function update_vlm_add_other() +{ + cmd = document.getElementById( 'vlm_command' ); + cmd.value = ""; +} + function clear_vlm_add() { document.getElementById( 'vlm_command' ).value = ""; @@ -657,6 +664,17 @@ function vlm_option( name, option ) vlm_cmd( value( 'vlm_command' ) ); } +function vlm_batch( batch ) +{ + var i; + var commands = batch.split( '\n' ); + for( i = 0; i < commands.length; i++ ) + { + document.getElementById( 'vlm_command' ).value = commands[i]; + vlm_cmd( value( 'vlm_command' ) ); + } +} + function vlm_schedule_append( name ) { act = document.getElementById( 'vlm_elt_' + name + '_action' ).value; diff --git a/share/http/vlm_export.html b/share/http/vlm_export.html new file mode 100644 index 0000000000..66a4c15ad1 --- /dev/null +++ b/share/http/vlm_export.html @@ -0,0 +1,11 @@ +##
+##
+## VLM HTTP interface
+## This file can be loaded as is in VLM.
+## Comments starting with "##" were added by the HTTP interface.
+## You can remove them if you want to.
+##
+
+##
+## end of export
+##