我正在使用video.js的4.0.3版。我可以在代码中更改哪些内容以使用自动播放隐藏控制栏?
答案 0 :(得分:0)
关闭此脚本。记得把脚本的ID放在那里:
// When the player has finished initialising
videojs("your_player_id_here").ready(function(){
// Add a function to the play event
this.on('play', function(){
// The fade is animated with CSS, so set it going.
$('.vjs-control-bar').removeClass('.vjs-fade-in').addClass('vjs-fade-out');
});
});