mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add publish edge framework
This commit is contained in:
parent
270b1270af
commit
ec96072472
6 changed files with 365 additions and 22 deletions
|
@ -321,6 +321,13 @@ int SrsRtmpConn::stream_service_cycle()
|
|||
case SrsRtmpConnFMLEPublish: {
|
||||
srs_verbose("FMLE start to publish stream %s.", req->stream.c_str());
|
||||
|
||||
if (vhost_is_edge) {
|
||||
if ((ret = source->on_edge_start_publish()) != ERROR_SUCCESS) {
|
||||
srs_error("notice edge start publish stream failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
if ((ret = rtmp->start_fmle_publish(res->stream_id)) != ERROR_SUCCESS) {
|
||||
srs_error("start to publish stream failed. ret=%d", ret);
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue