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.
This commit is contained in:
Ingo Oppermann 2022-07-19 09:57:17 +02:00
parent 5eb60f2b19
commit 94f5d9e1ee
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -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;
}