Code: Select all
function doPoll()
{
if( vlc.Playing )
{
// stream is still playing, call ourself again in 1 second
sliderTimerId = setTimeout("doPoll()", 1000);
}
else
{
// stream is no longer playing;
alert("VLC has stopped");
}
};
function onPlay()
{
// initiate regular polling
setTimeout("doPoll()", 1000)
}
Users browsing this forum: No registered users and 12 guests