Julien Blache <jb at technologeek.org> - disc ejection code
kty0ne - WinAmp 5 skin for VLC
Laurent Jonqueres <laurent_jonqueres at yahoo.fr> - Occitan localization
+Laurent Mutricy <laurent.mutricy at ecl2005 dot ec-lyon dot fr> - HTTP interface fixes
Lorena Gomes - Catalan translation
Marc Nolette <nolette at videotron.ca> - PVR support in DirectShow input
Marco Munderloh <Marco.Munderloh at web.de> - HTTP fix for Win32 to URL filenames
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-/* global variables */
+/**********************************************************************
+ * Global variables
+ *********************************************************************/
var old_time = 0;
+var pl_cur_id;
/**********************************************************************
* Slider functions
function pl_play( id )
{
loadXMLDoc( 'requests/status.xml?command=pl_play&id='+id, parse_status );
+ pl_cur_id = id;
setTimeout( 'update_playlist()', 1000 );
}
function pl_pause()
{
- loadXMLDoc( 'requests/status.xml?command=pl_pause', parse_status );
+ loadXMLDoc( 'requests/status.xml?command=pl_pause&id='+pl_cur_id, parse_status );
}
function pl_stop()
{
var pos = document.createElement( "div" );
var pos_top = pos;
var elt = answer.firstChild;
+
+ pl_cur_id = 0; /* changed to the current id is there actually
+ * is a current id */
while( elt )
{
if( elt.nodeName == "node" )
clear_children( nowplaying );
nowplaying.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
pl.appendChild( document.createTextNode( '* '));
+ pl_cur_id = elt.getAttribute( 'id' );
}
pl.setAttribute( 'title', elt.getAttribute( 'uri' ));
pl.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
<vlc id="rpn" param1="id value vlc_play" />
<vlc id="end" />
<vlc id="if" param1="command value 'pl_pause' strcmp 0 =" />
- <vlc id="rpn" param1="vlc_pause" />
+ <vlc id="if" param1="stream_state value 'stop' strcmp 0 = id value 0 = ! &" />
+ <vlc id="rpn" param1="id value vlc_play"/>
+ <vlc id="else" />
+ <vlc id="rpn" param1="vlc_pause" />
+ <vlc id="end" />
<vlc id="end" />
<vlc id="if" param1="command value 'pl_stop' strcmp 0 =" />
<vlc id="rpn" param1="vlc_stop" />