determine if VLC stops receiving video

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
yogeshsarda
Blank Cone
Blank Cone
Posts: 17
Joined: 20 Dec 2005 12:04

determine if VLC stops receiving video

Postby yogeshsarda » 19 Jan 2006 10:02

Is there anyway to determine if the VLC activex stops receiving video?

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 23 Jan 2006 11:51

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 12 guests