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 textTrackSettings: false
}); });
this._set_source(); this._set_source();
if (self.autoplay){ if (this.autoplay){
this.player.ready(this.auto_play.bind(this)); this.player.autoplay = true;
this.player.muted = true;
// this.player.ready(this.auto_play.bind(this));
} else { } else {
console.log('autoplay=', this.autoplay, this.auto_play); console.log('autoplay=', this.autoplay, this.auto_play);
this.player.ready(this.auto_play.bind(this)); // this.player.ready(this.auto_play.bind(this));
} }
} }
} }