我目前正在为video.js构建一个插件,在某些断点将覆盖显示在屏幕上。但是,如果不启动视频,我无法单击任何覆盖。我认为我需要禁用播放器上的点击播放功能。
如何禁用/启用video.js播放器的点击播放功能?
function createBreak(breakpoint){
player.pause();//pause the playback
player.getChild('controlBar').hide();//hide the controlbar
breakpoint.resolved = true;//
var button
我使用的是VIDEO.JS,我需要找出video.js正在使用哪个玩家的Javascript函数。示例
var myPlayer = videojs("the_player_id");
if (myPlayer.currentTechnology() == "flash") {
console.log("its using the flash player");
}
我在API中找不到这方面的任何东西。
我已经做了这个垃圾桶,我试图使我的video.js响应。请让我知道我该怎么做。我尝试了很多,但从移动的角度来看,它的控件总是浮出播放器,而不坚持它的位置:
videojs.autoSetup();
videojs('example_video_1').ready(function(){
console.log(this.options()); //log all of the default videojs options
// Store the video object
var myPlayer = this, id = myPlayer.id();