|
|
|
@ -128,9 +128,12 @@ srs_error_t SrsEdgeRtmpUpstream::connect(SrsRequest* r, SrsLbRoundRobin* lb)
|
|
|
|
|
|
|
|
|
|
// For RTMP client, we pass the vhost in tcUrl when connecting,
|
|
|
|
|
// so we publish without vhost in stream.
|
|
|
|
|
if ((err = sdk->play(_srs_config->get_chunk_size(req->vhost), false)) != srs_success) {
|
|
|
|
|
string stream;
|
|
|
|
|
if ((err = sdk->play(_srs_config->get_chunk_size(req->vhost), false, &stream)) != srs_success) {
|
|
|
|
|
return srs_error_wrap(err, "edge pull %s stream failed", url.c_str());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
srs_trace("edge-pull publish url %s, stream=%s%s as %s", url.c_str(), req->stream.c_str(), req->param.c_str(), stream.c_str());
|
|
|
|
|
|
|
|
|
|
return err;
|
|
|
|
|
}
|
|
|
|
@ -511,7 +514,8 @@ srs_error_t SrsEdgeForwarder::start()
|
|
|
|
|
|
|
|
|
|
// For RTMP client, we pass the vhost in tcUrl when connecting,
|
|
|
|
|
// so we publish without vhost in stream.
|
|
|
|
|
if ((err = sdk->publish(_srs_config->get_chunk_size(req->vhost), false)) != srs_success) {
|
|
|
|
|
string stream;
|
|
|
|
|
if ((err = sdk->publish(_srs_config->get_chunk_size(req->vhost), false, &stream)) != srs_success) {
|
|
|
|
|
return srs_error_wrap(err, "sdk publish");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -521,7 +525,8 @@ srs_error_t SrsEdgeForwarder::start()
|
|
|
|
|
if ((err = trd->start()) != srs_success) {
|
|
|
|
|
return srs_error_wrap(err, "coroutine");
|
|
|
|
|
}
|
|
|
|
|
srs_trace("edge-fwr publish url %s, stream=%s%s", url.c_str(), req->stream.c_str(), req->param.c_str());
|
|
|
|
|
|
|
|
|
|
srs_trace("edge-fwr publish url %s, stream=%s%s as %s", url.c_str(), req->stream.c_str(), req->param.c_str(), stream.c_str());
|
|
|
|
|
|
|
|
|
|
return err;
|
|
|
|
|
}
|
|
|
|
|