Page 1 of 1

Problem with event listener in Firefox

Posted: 20 Dec 2011 10:22
by JustinWyllie
Hi

This was previously posted in the Linux and Friends forum but I've moved it here as I think on reflection I need a developer to answer it.

My code:

Code: Select all

var test = function () { alert('the end'); } var vlc = $('#el').get(0); //jquery equivalent to document.getElementById vlc.addEventListener('MediaPlayerEndReached', test, false); vid = vlc.playlist.add(videoURI); //the movie url vlc.playlist.play();
Expected result: an alert box is fired up when the movie stops.
Got result: nothing.

i tested and vlc.addEventListener exists so this is the right way to do it (not the DOM level 1 way).

My versions:

VLC player 1.1.9
Firefox 7 on Ubuntu Linux

I've tried with other events and no joy there either. A few other posts mention this problem; some people seem to have got it to work on Mozilla (on Linux?) - using one of the two versions above & some not... Does anyone know how to make it work & if indeed it is implemented?

Many thanks

JustinWyllie

Re: Problem with event listener in Firefox

Posted: 21 Dec 2011 16:13
by JustinWyllie
Ok. I'm told by my c developer that it isn't implemented.