Page 1 of 1

IE11 and addEventListener

Posted: 06 May 2014 17:55
by langdon
I can't seem to get events working in Internet Explorer 11.

Is my only option emulating IE10 <meta http-equiv="X-UA-Compatible" content="IE=10" />?

I'm using code from the WebPlugin documentation which works fine in IE10/9 mode, but not IE=edge (11)...

Code: Select all

function registerVLCEvent(vlc, event, handler) { if (vlc.attachEvent) { // Microsoft vlc.attachEvent (event, handler); } else if (vlc.addEventListener) { // Mozilla: DOM level 2 vlc.addEventListener (event, handler, false); } else { // DOM level 0 vlc["on" + event] = handler; } }

Re: IE11 and addEventListener

Posted: 07 May 2014 16:05
by Jean-Baptiste Kempf
No idea what are the new things of IE11

Re: IE11 and addEventListener

Posted: 07 May 2014 19:56
by langdon
No idea what are the new things of IE11
They deprecated use of attachEvent and are now using addEventListener as the standard suggests. I suspect that's where the issue lies.

FireBreath/FBVLC had the same issue when IE11 came out but they patched it. I can't use FBVLC on Linux though. =[

Re: IE11 and addEventListener

Posted: 08 May 2014 04:46
by RSATom
how much do you need fbvlc on linux? :)

Re: IE11 and addEventListener

Posted: 10 May 2014 15:32
by langdon
how much do you need fbvlc on linux? :)
Hehe, eventually we will absolutely need it or we'll have a very downgraded experience on Linux (I'm now realizing how wonderful FBVLC is! :) :)).

We have it building internally but noticed the lack of what appears to be drawing code -- (WindowAttached, WindowDetached, and RefreshEvent). Is that all that's missing for a Linux build?

Re: IE11 and addEventListener

Posted: 10 May 2014 15:51
by RSATom
If you need it so much... hm, OK, I'll do it. What linux distro do you use?

Re: IE11 and addEventListener

Posted: 10 May 2014 15:54
by langdon
If you need it so much... hm, OK, I'll do it. What linux distro do you use?
Oh wow! Currently we're using Ubuntu. Thank you x1000!

Re: IE11 and addEventListener

Posted: 10 May 2014 15:59
by RSATom
good, I'm use it too. Will give you progress info within week or two.

Re: IE11 and addEventListener

Posted: 21 May 2014 05:56
by RSATom
Good news. I've got working FBVLC's windowed mode on ubuntu. windowless will be next.

Re: IE11 and addEventListener

Posted: 04 Jun 2014 18:50
by RSATom

Re: IE11 and addEventListener

Posted: 11 Jun 2014 16:00
by langdon
Sweet, thank you! Running it through its paces now.