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:
parent
5eb60f2b19
commit
94f5d9e1ee
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user