mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Instead just delete them, add a check for it
This commit is contained in:
parent
036d3c0019
commit
24505fbe40
1 changed files with 9 additions and 0 deletions
|
@ -52,6 +52,15 @@ void srs_discovery_tc_url(string tcUrl, string& schema, string& host, string& vh
|
||||||
// rtmp://ip/app?vhost=VHOST/stream
|
// rtmp://ip/app?vhost=VHOST/stream
|
||||||
string fullUrl = srs_string_replace(tcUrl, "...vhost...", "?vhost=");
|
string fullUrl = srs_string_replace(tcUrl, "...vhost...", "?vhost=");
|
||||||
|
|
||||||
|
// Standard URL is:
|
||||||
|
// rtmp://ip/app/app2/stream?k=v
|
||||||
|
// Where after last slash is stream.
|
||||||
|
if (fullUrl.find_first_of("?#") == string::npos)
|
||||||
|
{
|
||||||
|
fullUrl += param.empty() ? "" : (param.at(0) == '?' ? param : "?" + param);
|
||||||
|
fullUrl += stream.empty() ? "/" : (stream.at(0) == '/' ? stream : "/" + stream);
|
||||||
|
}
|
||||||
|
|
||||||
// First, we covert the FMLE URL to standard URL:
|
// First, we covert the FMLE URL to standard URL:
|
||||||
// rtmp://ip/app/app2?k=v/stream , or:
|
// rtmp://ip/app/app2?k=v/stream , or:
|
||||||
// rtmp://ip/app/app2#k=v/stream
|
// rtmp://ip/app/app2#k=v/stream
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue