bugfix
This commit is contained in:
parent
6ac4c9b582
commit
18f9403d4e
@ -73,9 +73,6 @@ bricks.Video = class extends bricks.Layout {
|
|||||||
_auto_play(){
|
_auto_play(){
|
||||||
console.log('video ready, auto_playing ....');
|
console.log('video ready, auto_playing ....');
|
||||||
schedule_once(this.disable_captions.bind(this), 2);
|
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');
|
this.hidedbtn.dispatch('click');
|
||||||
}
|
}
|
||||||
play(){
|
play(){
|
||||||
@ -90,9 +87,13 @@ bricks.Video = class extends bricks.Layout {
|
|||||||
controls:true,
|
controls:true,
|
||||||
autoplay:this.autoplay,
|
autoplay:this.autoplay,
|
||||||
muted:true,
|
muted:true,
|
||||||
|
crossorigin:"anonymous",
|
||||||
nativeTextTracks:false,
|
nativeTextTracks:false,
|
||||||
textTrackSettings: 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();
|
this._set_source();
|
||||||
/*
|
/*
|
||||||
if (this.autoplay){
|
if (this.autoplay){
|
||||||
|
Loading…
Reference in New Issue
Block a user