mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add srs app edge
This commit is contained in:
parent
d6948d613f
commit
a63a3812e3
7 changed files with 76 additions and 1 deletions
|
@ -296,6 +296,13 @@ int SrsRtmpConn::stream_service_cycle()
|
|||
case SrsRtmpConnPlay: {
|
||||
srs_verbose("start to play stream %s.", req->stream.c_str());
|
||||
|
||||
if (vhost_is_edge) {
|
||||
if ((ret = source->on_edge_play_stream()) != ERROR_SUCCESS) {
|
||||
srs_error("notice edge play stream failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
if ((ret = rtmp->start_play(res->stream_id)) != ERROR_SUCCESS) {
|
||||
srs_error("start to play stream failed. ret=%d", ret);
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue