This commit is contained in:
yumoqing 2024-10-10 13:42:21 +08:00
parent 6ac4c9b582
commit 18f9403d4e

View File

@ -73,9 +73,6 @@ bricks.Video = class extends bricks.Layout {
_auto_play(){
console.log('video ready, auto_playing ....');
schedule_once(this.disable_captions.bind(this), 2);
this.player.on('error',this.report_error.bind(this));
this.player.on('play', this.report_playok.bind(this));
this.player.on('ended', this.report_ended.bind(this));
this.hidedbtn.dispatch('click');
}
play(){
@ -90,9 +87,13 @@ bricks.Video = class extends bricks.Layout {
controls:true,
autoplay:this.autoplay,
muted:true,
crossorigin:"anonymous",
nativeTextTracks:false,
textTrackSettings: false
});
this.player.on('error',this.report_error.bind(this));
this.player.on('play', this.report_playok.bind(this));
this.player.on('ended', this.report_ended.bind(this));
this._set_source();
/*
if (this.autoplay){