mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-10 06:21:09 +02:00
implemented play2 time continuation
This commit is contained in:
parent
1474aec731
commit
521f8998b0
|
@ -626,6 +626,12 @@ ngx_rtmp_cmd_play2_init(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
|
|||
"play2: name='%s' args='%s' start=%i",
|
||||
v.name, v.args, (ngx_int_t) v.start);
|
||||
|
||||
/* continue from current timestamp */
|
||||
|
||||
if (v.start < 0) {
|
||||
v.start = s->current_time;
|
||||
}
|
||||
|
||||
ngx_memzero(&vc, sizeof(vc));
|
||||
|
||||
/* close_stream should be synchronous */
|
||||
|
|
Loading…
Reference in a new issue