1
0
Fork 0
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:
winlin 2014-04-27 09:29:37 +08:00
parent 270b1270af
commit ec96072472
6 changed files with 365 additions and 22 deletions

View file

@ -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;