Fix MSE2 check in JS

This commit is contained in:
Alexey Khit
2022-11-27 10:22:58 +03:00
parent 1b518b94fd
commit 140a742cee
+2 -2
View File
@@ -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();