Himani
Himani

Reputation: 265

Can't get Youtube mediaelement embed working in Internet Explorer

I am using mediaelement player in my WordPress plugin.

In Internet explorer, embedding youtube inside an iframe not working whereas it works inside Chrome and Firefox.

In Internet explorer it shows the blank screen

While inspecting with the help of developers tool I see that iframe tag is not loading at all. Here is the screenshot: Internet Explorer Debugger

In chrome, tag is getting loaded

Chrome Developer tools

Please, can anyone help me with this? Thanks in advance!

Upvotes: 0

Views: 450

Answers (1)

RedCrusador
RedCrusador

Reputation: 705

If it doesent work in IE9 best option is to fall back to flash. You can do this two ways;

The hacky way adding a meta tag to render as IE8 hence faling back to flash;

<meta http-equiv="X-UA-Compatible" content="IE=8" />

The better way is to set in the wordpress options 'mode: 'auto_plugin' - which should force IE 9 to use flash.

Upvotes: 1

Related Questions