问题描述
我正在使用流程图5.2构建一个可嵌入的播放器,并注意到当它在 iframe
中时,全屏支持已经消失。那些其他大玩家在他们的iframe代码中有 allowFullScreen
,但是流程玩家脚本没有看到它,或者我不知道如何让它看到它。
有没有人在这里想出来了?
谢谢,
托马斯
I'm building an embeddable player with flowplayer 5.2 and noticed that fullscreen support is gone when it's in an iframe
. Those other big players have allowFullScreen
in their iframe code but the flowplayer script doesn't see it or I don't know how to make it see it.
Has anyone here figured this out?
Thanks,
thomas
推荐答案
明白了。 flowplayer设置 window == window.top
作为全屏的默认值,所以为了使它工作,你需要手动设置 flowplayer.conf.fullscreen = true ;
Got it. flowplayer sets window == window.top
as default for fullscreen so in order to make it work you need to manually set flowplayer.conf.fullscreen = true;
这篇关于如何在iframe中的Flowplayer 5.2中启用全屏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!