1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for tcurl is already containing stream and param, don't need to add to it again

This commit is contained in:
zx 2024-10-10 17:31:29 +08:00
parent 0f791cbf06
commit 036d3c0019

View file

@ -52,11 +52,6 @@ void srs_discovery_tc_url(string tcUrl, string& schema, string& host, string& vh
// rtmp://ip/app?vhost=VHOST/stream
string fullUrl = srs_string_replace(tcUrl, "...vhost...", "?vhost=");
// Standard URL is:
// rtmp://ip/app/app2/stream?k=v
// Where after last slash is stream.
fullUrl += stream.empty() ? "/" : (stream.at(0) == '/' ? stream : "/" + stream);
// First, we covert the FMLE URL to standard URL:
// rtmp://ip/app/app2?k=v/stream , or:
// rtmp://ip/app/app2#k=v/stream