Page 1 of 1

Error Calling method on NPObject since version 1.1.0

Posted: 29 Jun 2010 19:30
by VSB
I get this error on the Mozilla Plugin (didn't test it on ActiveX) only since I installed version 1.1.0, before this it worked fine

the script i'm using is made from the examples found here: http://wiki.videolan.org/Documentation: ... ist_object

the error appears in the registerVLCEvent function when calling vlc.addEventListener in order to register any event such as MediaPlayerNothingSpecial or MediaPlayerOpening, see code below

like i said it worked fine before the latest version. do i have to change anything or is it a bug?
thanks

Code: Select all

function registerVLCEvent(event, handler) { var vlc = getVLC("vlc"); if (vlc) { if (vlc.attachEvent) { // Microsoft vlc.attachEvent (event, handler); } else if (vlc.addEventListener) { // Mozilla: DOM level 2 // HERE IS WHERE THE ERROR APPEARS vlc.addEventListener (event, handler, false); } else { // DOM level 0 eval("vlc.on" + event + " = handler"); } } }

Re: Error Calling method on NPObject since version 1.1.0

Posted: 23 Sep 2010 09:31
by rambler
Hi,

I am seeing same issue with VLC plugin 1.1.4 in firefox/windows XP. I am using the code provided to register event on http://wiki.videolan.org/Documentation:WebPlugin.

The function addEventListern() is throwing an exception with message "error calling method on NPObject". Is this a bug or something has changed in the API?

Thanks for any inputs.

Re: Error Calling method on NPObject since version 1.1.0

Posted: 29 Sep 2010 19:40
by Yansky
I don't think the event handlers are implemented in the plugin yet.