Exit the getTracksFromStream function if it could not determine the Monitor.ID from the passed stream (skin.js)

This commit is contained in:
IgorA100
2026-02-15 23:51:50 +03:00
committed by Isaac Connor
parent af0733505a
commit 520145991b

View File

@@ -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') {