Fix RTMP URL for receive mode

This commit is contained in:
Ingo Oppermann 2024-04-12 15:21:59 +02:00
parent e7ace32c3c
commit 1e86878d75
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -455,7 +455,7 @@ const getRTMPAddress = (host, app, name, token, secure) => {
let url = 'rtmp' + (secure ? 's' : '') + '://' + host + app + '/' + name + '.stream'; let url = 'rtmp' + (secure ? 's' : '') + '://' + host + app + '/' + name + '.stream';
if (token.length !== 0) { if (token.length !== 0) {
url += '/token=' + encodeURIComponent(token); url += '/' + encodeURIComponent(token);
} }
return url; return url;