Fix autoplay after background

This commit is contained in:
Alexey Khit
2023-02-03 11:40:52 +03:00
parent 5a2d7de56b
commit 2a20251dbd
+1 -1
View File
@@ -189,8 +189,8 @@ export class VideoRTC extends HTMLElement {
const seek = this.video.seekable; const seek = this.video.seekable;
if (seek.length > 0) { if (seek.length > 0) {
this.video.currentTime = seek.end(seek.length - 1); this.video.currentTime = seek.end(seek.length - 1);
this.play();
} }
this.play();
} else { } else {
this.oninit(); this.oninit();
} }