简体   繁体   English

Brightcove HTML5播放器全屏事件

[英]Brightcove HTML5 Player full screen event

In Brightcove documentation, they mention ENTER_FULLSCREEN and EXIT_FULLSCREEN events. 在Brightcove文档中, 他们提到了ENTER_FULLSCREEN和EXIT_FULLSCREEN事件。

I couldn't find those events in the 'brightcove.api.events.ExperienceEvent' object. 我无法在'brightcove.api.events.ExperienceEvent'对象中找到这些事件。 I had to use browsers full screen events instead: 我不得不使用浏览器全屏事件:

       jQuery(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange',fullScreenChangeHandler);

I feel it's a hack, because Brightcove documentation states they do support player fullscreen events. 我觉得这是一个黑客,因为Brightcove文档声明他们确实支持播放器全屏事件。 Besides, on browser fullscreen event, I don't know if the video player entered or exited the full screen mode. 此外,在浏览器全屏事件中,我不知道视频播放器是进入还是退出全屏模式。

Is there any videoplayer full screen events for Brightcove HTML5 player ? Brightcove HTML5播放器是否有任何视频播放器全屏事件?

The HTML5 smart player doesn't have full screen events. HTML5智能播放器没有全屏事件。 The doc links you have are for an older player API version for the Flash player only. 您拥有的文档链接仅适用于Flash播放器的较旧播放器API版本。

If you add a js plugin to a smart player, it will run inside the HTML5 player iframe and be able to listen to the video element's full screen events. 如果您向智能播放器添加js插件,它将在HTML5播放器iframe内运行,并能够收听视频元素的全屏事件。

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

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