Html5 video [video.js]使用autoplay在开头隐藏控制栏
我使用的是video.js的4.0.3版。我可以在代码中做什么更改,以在autoplay开始时隐藏控制栏?只需启动此脚本即可。请记住将脚本的ID放在其中:Html5 video [video.js]使用autoplay在开头隐藏控制栏,html5-video,Html5 Video,我使用的是video.js的4.0.3版。我可以在代码中做什么更改,以在autoplay开始时隐藏控制栏?只需启动此脚本即可。请记住将脚本的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(){
// 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');
});
});