mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-20 09:51:08 +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",
|
"play2: name='%s' args='%s' start=%i",
|
||||||
v.name, v.args, (ngx_int_t) v.start);
|
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));
|
ngx_memzero(&vc, sizeof(vc));
|
||||||
|
|
||||||
/* close_stream should be synchronous */
|
/* close_stream should be synchronous */
|
||||||
|
|
Loading…
Reference in a new issue