问题
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