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