mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
http streaming support flv start index.
This commit is contained in:
parent
9360b4618a
commit
b13bd70c86
11 changed files with 413 additions and 20 deletions
|
@ -306,6 +306,7 @@ int SrsRtmpConn::stream_service_cycle()
|
|||
case SrsRtmpConnPlay: {
|
||||
srs_verbose("start to play stream %s.", req->stream.c_str());
|
||||
|
||||
// notice edge to start for the first client.
|
||||
if (vhost_is_edge) {
|
||||
if ((ret = source->on_edge_start_play()) != ERROR_SUCCESS) {
|
||||
srs_error("notice edge start play stream failed. ret=%d", ret);
|
||||
|
@ -313,6 +314,7 @@ int SrsRtmpConn::stream_service_cycle()
|
|||
}
|
||||
}
|
||||
|
||||
// response connection start play
|
||||
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