Jwplayer fullscreen - on clicking the custom button in IE8

大憨熊 提交于 2019-12-12 06:24:18

问题


I want to make jwplayer to fullscreen when I click on my own custom button "Fullscreen".

I am aware of jwplayer().setFullscreen(true); but it is not supported in IE8.

I have also tried AngularFullScreen but it will also not support in IE8.

Is there any way to do this in IE8?

Thanks in Advance.


回答1:


IE8 doesn't support software switch to fullscreen. You have to emulate F11 key press. Check this topic: Internet Explorer full screen mode?




回答2:


You can not. Because of a security limitation it is not possible to set fullscreen from outside of the flash player, not in Jwplayer, not in flowplayer. Sorry...




回答3:


press f11 programatically by calling this function

function max() {
    var wscript = new ActiveXObject("Wscript.shell");
    wscript.SendKeys("{F11}");
}


来源:https://stackoverflow.com/questions/33842428/jwplayer-fullscreen-on-clicking-the-custom-button-in-ie8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!