video.js默认一进页面就全屏,为什么报错

var myPlayer = videojs('my-video',{

                "autoplay":true,

                "isFullscreen":true

            });

            videojs("my-video").ready(function(){

            var myPlayer = this;

             myPlayer.play();

            myPlayer.enterFullScreen();

           document.getElementsByClassName("vjs-progress-control")[0].style.display="none";

           });

会提示Uncaught TypeError: myPlayer.enterFullScreen is not a function

交互式爱情
浏览 2689回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript