简体   繁体   English

全屏Jwplayer-单击IE8中的自定义按钮

[英]Jwplayer fullscreen - on clicking the custom button in IE8

I want to make jwplayer to fullscreen when I click on my own custom button "Fullscreen" . 当我单击自己的自定义按钮"Fullscreen"时,我想使jwplayer变为全屏。

I am aware of jwplayer().setFullscreen(true); 我知道jwplayer()。setFullscreen(true); but it is not supported in IE8. 但IE8不支持。

I have also tried AngularFullScreen but it will also not support in IE8. 我也尝试过AngularFullScreen,但IE8也将不支持它。

Is there any way to do this in IE8? 在IE8中有什么方法可以做到这一点?

Thanks in Advance. 提前致谢。

IE8 doesn't support software switch to fullscreen. IE8不支持将软件切换到全屏模式。 You have to emulate F11 key press. 您必须模拟F11按键。 Check this topic: Internet Explorer full screen mode? 请检查以下主题: Internet Explorer全屏模式?

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. 由于安全性限制,无法从Flash Player之外而不是Jwplayer中或flowplayer中设置全屏。 Sorry... 抱歉...

press f11 programatically by calling this function 通过调用此函数以编程方式按f11

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM