mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-19 03:56:18 -04:00
Place the "readyState" check above (MonitorStream.js)
This commit is contained in:
@@ -1229,9 +1229,9 @@ function mseListenerSourceopen(context, videoEl, url) {
|
||||
if (this.started) this.restart();
|
||||
};
|
||||
context.wsMSE.onmessage = function(event) {
|
||||
if (context.mse.readyState !== "open") return;
|
||||
const data = new Uint8Array(event.data);
|
||||
if (data[0] === 9) {
|
||||
if (context.mse.readyState !== "open") return;
|
||||
let mimeCodec;
|
||||
const decodedArr = data.slice(1);
|
||||
if (window.TextDecoder) {
|
||||
|
||||
Reference in New Issue
Block a user