From 520145991b60c3d4bd272bbf97fcdb9c17a46549 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Sun, 15 Feb 2026 23:51:50 +0300 Subject: [PATCH] Exit the getTracksFromStream function if it could not determine the Monitor.ID from the passed stream (skin.js) --- web/skins/classic/js/skin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index c237f8e93..4677f4ea0 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -2764,6 +2764,10 @@ async function getTracksFromStream(videoFeedStream) { return; } const mid = (typeof eventData !== 'undefined') ? eventData.MonitorId : (videoFeedStream) ? videoFeedStream.id : null; + if (!mid) { + console.log(`getTracksFromStream: Unable to get Monitor.ID for`, videoFeedStream); + return; + } let el = null; if (currentView == 'watch' || currentView == 'montage') {