Problem with event listener in Firefox

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
JustinWyllie
New Cone
New Cone
Posts: 5
Joined: 19 Dec 2011 15:22

Problem with event listener in Firefox

Postby JustinWyllie » 20 Dec 2011 10:22

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

JustinWyllie
New Cone
New Cone
Posts: 5
Joined: 19 Dec 2011 15:22

Re: Problem with event listener in Firefox

Postby JustinWyllie » 21 Dec 2011 16:13

Ok. I'm told by my c developer that it isn't implemented.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 10 guests