From 2a20251dbdd74c8871ccbebb0a2efb232118e085 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Fri, 3 Feb 2023 11:40:52 +0300 Subject: [PATCH] Fix autoplay after background --- www/video-rtc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/video-rtc.js b/www/video-rtc.js index 10eeead6..e7534b30 100644 --- a/www/video-rtc.js +++ b/www/video-rtc.js @@ -189,8 +189,8 @@ export class VideoRTC extends HTMLElement { const seek = this.video.seekable; if (seek.length > 0) { this.video.currentTime = seek.end(seek.length - 1); - this.play(); } + this.play(); } else { this.oninit(); }