Error Calling method on NPObject since version 1.1.0
Posted: 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
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");
}
}
}