Plugin support for DOM event listeners

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
sbraheem
New Cone
New Cone
Posts: 6
Joined: 10 Jun 2009 16:59

Plugin support for DOM event listeners

Postby sbraheem » 10 Jun 2009 17:22

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.
VLC control with BST Player - http://oss.bramosystems.com/bst-player

Shadow2531
Blank Cone
Blank Cone
Posts: 13
Joined: 01 Apr 2007 12:04

Re: Plugin support for DOM event listeners

Postby Shadow2531 » 16 Jun 2009 02:35

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests