From 140a742cee15657cbb3ef86b6508ee6e19ead848 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Sun, 27 Nov 2022 10:22:58 +0300 Subject: [PATCH] Fix MSE2 check in JS --- www/video-rtc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/video-rtc.js b/www/video-rtc.js index 11827bc1..d4c870a3 100644 --- a/www/video-rtc.js +++ b/www/video-rtc.js @@ -315,8 +315,8 @@ class VideoRTC extends HTMLElement { }, delay); }); - if ("MediaSource" in window && this.MSE2) { - if (MediaSource.canConstructInDedicatedWorker) { + if ("MediaSource" in window) { + if (MediaSource.canConstructInDedicatedWorker && this.MSE2) { this.internalMSE2(); } else { this.internalMSE();