Merge pull request #4288 from IgorA100/patch-193100

Fix: Requires using MediaSourse existence check (MonitorStream.js)
This commit is contained in:
Isaac Connor
2025-04-03 14:17:47 -04:00
committed by GitHub

View File

@@ -1238,7 +1238,7 @@ function mseListenerSourceopen(context, videoEl, url) {
if (this.started) this.restart();
};
context.wsMSE.onmessage = function(event) {
if (context.mse.readyState !== "open") return;
if (!context.mse || (context.mse && context.mse.readyState !== "open")) return;
const data = new Uint8Array(event.data);
if (data[0] === 9) {
let mimeCodec;