Fix RTMP URL for receive mode
This commit is contained in:
parent
e7ace32c3c
commit
1e86878d75
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user