implemented play2 time continuation

This commit is contained in:
Roman Arutyunyan 2014-02-03 11:16:01 +04:00
parent 1474aec731
commit 521f8998b0

View file

@ -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 */