Page 1 of 1

Plugin support for DOM event listeners

Posted: 10 Jun 2009 17:22
by sbraheem
Hi All,

Does the VLC plugin support DOM event listeners?

I'd like to monitor changes in input state. Currently i setup a javascript timer to pool player.input.state every 800ms and use it to update the state of my control buttons. But i'd like to do something like :

player.addEventListener('vlc_state', myJSFunction);

Is this possible or is their another way? i've been googling for hours with no success!! Any idea will be appreciated.

Cheers.

Re: Plugin support for DOM event listeners

Posted: 16 Jun 2009 02:35
by Shadow2531
I don't know about making it .addEventListener. Wouldn't want it overriding the browser's native .addEventListener on the object or embed element. Also, I don't think that the DOM addEventListener could do anything for VLC without the browser integrating support for registering vlc events that way.

However, I think the plugin supporting a .vlc_addEventListener would be great.