<img src="images/playlist.png" alt="Playlist" />
<span class="btn_text">Playlist</span>
</button>
+ <button id="btn_info" onclick="toggle_show('info');" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Info" >
+ <img src="images/info.png" alt="Info" />
+ <span class="btn_text">Info</span>
+ </button>
<button id="btn_fullscreen" onclick="fullscreen();" onmouseover="button_over(this);" onmouseout="button_out(this);" title="Fullscreen" >
<img src="images/fullscreen.png" alt="Fullscreen" />
<span id="nowplaying">(?)</span>
</div>
</div>
+
+<div id="info" class="dialog" style="display: none;" >
+ <div class="title">
+ Stream and media info
+ <button id="btn_info_hide" onclick="hide( 'info' );">
+ Hide
+ </button>
+ </div>
+ <div id="infotree">
+ </div>
+</div>
</div>
<div class="controls">
<label for="sout_mrl">Destination (MRL)</label>
- <input type="text" name="sout_mrl" id="sout_mrl" size="60" />
- <br/>
<vlc id="if" param1="page value 'vlm' strcmp 0 =" />
+ <input type="text" name="sout_mrl" id="sout_mrl" size="60" onkeypress="if( event.keyCode == 13 ) vlm_output_change();"/>
+ <br/>
<input type="submit" value="Ok" onclick="vlm_output_change();" />
<input type="hidden" id="sout_dest" />
<vlc id="else" />
+ <input type="text" name="sout_mrl" id="sout_mrl" size="60" onkeypress="if( event.keyCode == 13 ) save_sout();" />
+ <br/>
<input type="submit" value="Save" onclick="save_sout();" />
<vlc id="end" />
<input type="button" value="Cancel" onclick="reset_sout();"/>
</div>
<div class="controls">
<label for="vlm_command">VLM command:</label>
- <input type="text" id="vlm_command" size="60" />
+ <input type="text" id="vlm_command" size="60" onkeypress="if( event.keyCode == 13 ) vlm_send();" />
<input type="button" value="Send" onclick="vlm_send();" />
<br />
<span id="vlm_error"></span>
}
}
+function clear_children( elt )
+{
+ if( elt )
+ while( elt.hasChildNodes() )
+ elt.removeChild( elt.firstChild );
+}
+
/**********************************************************************
* Interface actions
*********************************************************************/
document.getElementById( 'btn_pause_img' ).setAttribute( 'alt', 'Play' );
document.getElementById( 'btn_pause' ).setAttribute( 'title', 'Play' );
}
+
+ var tree = document.createElement( "ul" );
+ var categories = status.getElementsByTagName( 'category' );
+ var i;
+ for( i = 0; i < categories.length; i++ )
+ {
+ var item = document.createElement( "li" );
+ item.appendChild( document.createTextNode( categories[i].getAttribute( 'name' ) ) );
+ var subtree = document.createElement( "dl" );
+ var infos = categories[i].getElementsByTagName( 'info' );
+ var j;
+ for( j = 0; j < infos.length; j++ )
+ {
+ var subitem = document.createElement( "dt" );
+ subitem.appendChild( document.createTextNode( infos[j].getAttribute( 'name' ) ) );
+ subtree.appendChild( subitem );
+ if( infos[j].hasChildNodes() )
+ {
+ var subitem = document.createElement( "dd" );
+ subitem.appendChild( document.createTextNode( infos[j].firstChild.data ) );
+ subtree.appendChild( subitem );
+ }
+ }
+ item.appendChild( subtree );
+ tree.appendChild( item );
+ }
+ var infotree = document.getElementById('infotree' );
+ clear_children( infotree );
+ infotree.appendChild( tree );
+
}
else
{
document.getElementById( 'vlm_vod_name' ).value = "";
}
-function clear_children( elt )
-{
- if( elt )
- while( elt.hasChildNodes() )
- elt.removeChild( elt.firstChild );
-}
-
function create_button( caption, action )
{
var link = document.createElement( "input" );
text.setAttribute( 'type', 'text' );
text.setAttribute( 'size', '40' );
text.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_input' );
+ text.setAttribute( 'onkeypress', 'if( event.keyCode == 13 ) vlm_add_input("'+elt.getAttribute('name')+'",document.getElementById("vlm_elt_'+elt.getAttribute('name')+'_input").value );' );
item.appendChild( text );
item.appendChild( document.createTextNode( ' ' ) );
item.appendChild( create_button( 'Edit', 'vlm_input_edit("vlm_elt_'+elt.getAttribute('name')+'_input");') );
if( inputs.length > 0 )
{
var ilist = document.createElement( "ol" );
- ilist.setAttribute( 'start', '0' );
+ ilist.setAttribute( 'start', '1' );
item.appendChild( ilist );
for( i = 0; i < inputs.length; i++ )
{
text.setAttribute( 'type', 'text' );
text.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_output' );
text.setAttribute( 'value', output );
+ text.setAttribute( 'onkeypress', 'if( event.keyCode == 13 ) vlm_output("'+elt.getAttribute( 'name' )+ '",document.getElementById("vlm_elt_'+elt.getAttribute( 'name' )+'_output").value);' );
item.appendChild( text );
item.appendChild( document.createTextNode( ' ' ) );
text.setAttribute( 'type', 'text' );
text.setAttribute( 'size', '40' );
text.setAttribute( 'id', 'vlm_elt_'+elt.getAttribute('name')+'_option' );
+ text.setAttribute( 'onkeypress', 'if( event.keyCode == 13 ) vlm_option("'+elt.getAttribute('name')+'",document.getElementById("vlm_elt_'+elt.getAttribute('name')+'_option").value );' );
item.appendChild( text );
item.appendChild( document.createTextNode( ' ' ) );
item.appendChild( create_button( 'Add option', 'vlm_option("'+elt.getAttribute('name')+'",document.getElementById("vlm_elt_'+elt.getAttribute('name')+'_option").value );' ) );
<fullscreen><vlc id="if" param1="'VLC_OBJECT_VOUT' vlc_obj_exists" /><vlc id="value" param1="'fullscreen' 'VLC_OBJECT_VOUT' vlc_var_get" /><vlc id="end" /></fullscreen>
<loop><vlc id="value" param1="'loop' 'VLC_OBJECT_PLAYLIST' vlc_var_get"/></loop>
<repeat><vlc id="value" param1="'repeat' 'VLC_OBJECT_PLAYLIST' vlc_var_get" /></repeat>
+ <information>
+ <vlc id="foreach" param1="inf" param2="information" />
+ <category name="<vlc id="value" param1="inf.name" />">
+ <vlc id="foreach" param1="subinf" param2="inf.info" />
+ <info name="<vlc id="value" param1="subinf.name" />"><vlc id="value" param1="subinf.value" /></info>
+ <vlc id="end" />
+ </category>
+ <vlc id="end" />
+ </information>
</root>
margin: 0px;
}
+div#infotree ul {
+ padding: 0.4em;
+ margin: 0em;
+}
+div#infotree li {
+ font-weight: bold;
+ font-size: 0.8em;
+}
+div#infotree dl {
+ font-weight: normal;
+ padding: 0em 1em;
+}
+div#infotree dt {
+ text-decoration: underline;
+}
+
div.pl_node {
padding-left: 20px;
font-style: italic;
APPEND_INPUT_INFO( "chapter", "%d", Integer );
APPEND_INPUT_INFO( "seekable", "%d", Bool );
#undef APPEND_INPUT_INFO
- asprintf( &psz_tmp, "%d", p_instance->i_index );
+ asprintf( &psz_tmp, "%d", p_instance->i_index + 1 );
vlm_MessageAdd( msg_instance, vlm_MessageNew( "playlistindex", psz_tmp ) );
free( psz_tmp );
vlm_MessageAdd( msg_child, msg_instance );