This commit is contained in:
yumoqing 2024-10-10 11:55:59 +08:00
parent dede41601a
commit bfeba207ca

View File

@ -94,11 +94,13 @@ bricks.Video = class extends bricks.Layout {
textTrackSettings: false
});
this._set_source();
if (self.autoplay){
this.player.ready(this.auto_play.bind(this));
if (this.autoplay){
this.player.autoplay = true;
this.player.muted = true;
// this.player.ready(this.auto_play.bind(this));
} else {
console.log('autoplay=', this.autoplay, this.auto_play);
this.player.ready(this.auto_play.bind(this));
// this.player.ready(this.auto_play.bind(this));
}
}
}