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

for #369, support RTMP 302 api at protocol level.

This commit is contained in:
winlin 2016-01-08 18:17:37 +08:00
parent f1e7e9d933
commit d24aef50ba
7 changed files with 86 additions and 3 deletions

View file

@ -306,7 +306,9 @@ string srs_generate_rtmp_url(string server, int port, string vhost, string app,
ss << "...vhost..." << vhost;
}
ss << "/" << stream;
if (!stream.empty()) {
ss << "/" << stream;
}
return ss.str();
}