播放器进入全屏模式时,我该怎么办? [英] How can i do to detect when player enters in fullscreen mode?

查看:144
本文介绍了播放器进入全屏模式时,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



详细信息:Flash回退存在

解决方案

将此功能放在您的事件侦听器中: console.log(player.isFullScreen);
这将打印如果播放器处于全屏模式,则为真。
为了成功打印变量的内容,您需要动态创建播放器
,并将其分配给一个名为player的变量。


There are an event to be detected when player enters in fullscreen mode?

Detail: Flash fallback is present

解决方案

Place this function in your event listener: console.log(player.isFullScreen); This will print true if player is in fullscreen mode. In order to successfully print the content of the variable you need to create the player dynamically and assign it to a variable called player.

这篇关于播放器进入全屏模式时,我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆