Try fixing video in Safari
This commit is contained in:
parent
6da07f5bce
commit
c9f14cd078
1 changed files with 3 additions and 2 deletions
|
|
@ -9,9 +9,10 @@ export class Video extends PageElement {
|
||||||
this.query('.start-button').addEventListener('click', this.startVideo.bind(this));
|
this.query('.start-button').addEventListener('click', this.startVideo.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
private startVideo() {
|
private async startVideo() {
|
||||||
this.query('.start-button').style.visibility = 'hidden';
|
this.query('.start-button').style.visibility = 'hidden';
|
||||||
this.htmlRoot.classList.add('loaded');
|
this.htmlRoot.classList.add('loaded');
|
||||||
(this.query('video') as HTMLVideoElement).play();
|
|
||||||
|
await (this.query('video') as HTMLVideoElement).play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue