Skip to content

Commit 521f899

Browse files
committed
implemented play2 time continuation
1 parent 1474aec commit 521f899

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ngx_rtmp_cmd_module.c

+6
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,12 @@ ngx_rtmp_cmd_play2_init(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
626626
"play2: name='%s' args='%s' start=%i",
627627
v.name, v.args, (ngx_int_t) v.start);
628628

629+
/* continue from current timestamp */
630+
631+
if (v.start < 0) {
632+
v.start = s->current_time;
633+
}
634+
629635
ngx_memzero(&vc, sizeof(vc));
630636

631637
/* close_stream should be synchronous */

0 commit comments

Comments
 (0)