mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Discover api server and ip as candidates. v4.0.218
This commit is contained in:
parent
013fa8ac6c
commit
fbb6d9464c
9 changed files with 97 additions and 22 deletions
|
@ -117,6 +117,7 @@ srs_error_t SrsGoApiRtcPlay::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMe
|
|||
// The RTC user config object.
|
||||
SrsRtcUserConfig ruc;
|
||||
ruc.req_->ip = clientip;
|
||||
ruc.api_ = api;
|
||||
|
||||
srs_parse_rtmp_url(streamurl, ruc.req_->tcUrl, ruc.req_->stream);
|
||||
|
||||
|
@ -383,6 +384,7 @@ srs_error_t SrsGoApiRtcPublish::do_serve_http(ISrsHttpResponseWriter* w, ISrsHtt
|
|||
// The RTC user config object.
|
||||
SrsRtcUserConfig ruc;
|
||||
ruc.req_->ip = clientip;
|
||||
ruc.api_ = api;
|
||||
|
||||
srs_parse_rtmp_url(streamurl, ruc.req_->tcUrl, ruc.req_->stream);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue