mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Compatible with legacy RTMP URL. v5.0.142. v6.0.27 (#3429)
For compatibility, transform
rtmp://ip/app...vhost...VHOST/stream
to typical format:
rtmp://ip/app/stream?vhost=VHOST
This is used for some legacy devices, which does not
support standard HTTP url query string.
PICK b75668b509
---------
Co-authored-by: chundonglinlin <chundonglinlin@163.com>
Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
f12096534a
commit
7fe0e28dd5
5 changed files with 44 additions and 6 deletions
|
@ -397,11 +397,14 @@ public:
|
|||
// The client ip.
|
||||
std::string ip;
|
||||
public:
|
||||
// The tcUrl: rtmp://request_vhost:port/app/stream
|
||||
// support pass vhost in query string, such as:
|
||||
// rtmp://ip:port/app?vhost=request_vhost/stream
|
||||
// rtmp://ip:port/app...vhost...request_vhost/stream
|
||||
// Support pass vhost in RTMP URL, such as:
|
||||
// rtmp://VHOST:port/app/stream
|
||||
// rtmp://ip:port/app/stream?vhost=VHOST
|
||||
// rtmp://ip:port/app?vhost=VHOST/stream
|
||||
// rtmp://ip:port/app...vhost...VHOST/stream
|
||||
// While tcUrl is url without stream.
|
||||
std::string tcUrl;
|
||||
public:
|
||||
std::string pageUrl;
|
||||
std::string swfUrl;
|
||||
double objectEncoding;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue