From 94f5d9e1ee1ae55a2233b265b6f485fcf7375262 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Tue, 19 Jul 2022 09:57:17 +0200 Subject: [PATCH] Fix display of current viewers With the HLS master manifest the effective stream name is not anymore the channelid but the channelid with a sufix. By matching the current sessions with the channelid this wasn't taken into account. --- src/utils/restreamer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/restreamer.js b/src/utils/restreamer.js index 80341e6..cf71173 100644 --- a/src/utils/restreamer.js +++ b/src/utils/restreamer.js @@ -1352,7 +1352,7 @@ class Restreamer { } for (let i = 0; i < val.hls.length; i++) { - if (val.hls[i].reference !== this.channel.channelid) { + if (!val.hls[i].reference.startsWith(this.channel.channelid)) { continue; } @@ -1367,7 +1367,7 @@ class Restreamer { } for (let i = 0; i < val.ffmpeg.length; i++) { - if (val.ffmpeg[i].reference !== this.channel.channelid) { + if (!val.ffmpeg[i].reference.startsWith(this.channel.channelid)) { continue; } @@ -1381,7 +1381,7 @@ class Restreamer { } for (let i = 0; i < val.rtmp.length; i++) { - if (val.rtmp[i].reference !== this.channel.channelid) { + if (!val.rtmp[i].reference.startsWith(this.channel.channelid)) { continue; }