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

For RTMP edge/forward, pass vhost in tcUrl, not in stream. 3.0.156

This commit is contained in:
winlin 2020-12-26 22:11:23 +08:00
parent 4d18835f3c
commit 6e43ef6866
8 changed files with 38 additions and 29 deletions

View file

@ -80,7 +80,7 @@ extern std::string srs_generate_tc_url(std::string host, std::string vhost, std:
* Generate the stream with param.
* @remark Append vhost in query string if not default vhost.
*/
extern std::string srs_generate_stream_with_query(std::string host, std::string vhost, std::string stream, std::string param);
extern std::string srs_generate_stream_with_query(std::string host, std::string vhost, std::string stream, std::string param, bool with_vhost = true);
/**
* create shared ptr message from bytes.