Page 1 of 1

determine if VLC stops receiving video

Posted: 19 Jan 2006 10:02
by yogeshsarda
Is there anyway to determine if the VLC activex stops receiving video?

Posted: 23 Jan 2006 11:51
by Quovodis
at the moment, the ActiveX events notification do not work properly.
I would recommend that you poll the 'isPlaying' property on a regular basis.

see javascript example below

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) }