Error Calling method on NPObject since version 1.1.0

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
VSB
New Cone
New Cone
Posts: 2
Joined: 08 Jun 2010 18:43

Error Calling method on NPObject since version 1.1.0

Postby VSB » 29 Jun 2010 19:30

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"); } } }

rambler
New Cone
New Cone
Posts: 2
Joined: 01 May 2010 01:43

Re: Error Calling method on NPObject since version 1.1.0

Postby rambler » 23 Sep 2010 09:31

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.

Yansky
Blank Cone
Blank Cone
Posts: 11
Joined: 24 Aug 2010 02:32

Re: Error Calling method on NPObject since version 1.1.0

Postby Yansky » 29 Sep 2010 19:40

I don't think the event handlers are implemented in the plugin yet.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 9 guests