moved vod sample access to fix flash security error

This commit is contained in:
Roman Arutyunyan 2014-03-03 15:47:03 +04:00
parent 6f768dc4eb
commit 96855b1413

View file

@ -904,10 +904,6 @@ ngx_rtmp_play_open(ngx_rtmp_session_t *s, double start)
return NGX_ERROR;
}
if (ngx_rtmp_send_sample_access(s) != NGX_OK) {
return NGX_ERROR;
}
if (ngx_rtmp_play_join(s) != NGX_OK) {
return NGX_ERROR;
}
@ -919,6 +915,10 @@ ngx_rtmp_play_open(ngx_rtmp_session_t *s, double start)
ngx_rtmp_send_recorded(s, 1);
if (ngx_rtmp_send_sample_access(s) != NGX_OK) {
return NGX_ERROR;
}
if (ngx_rtmp_play_do_init(s) != NGX_OK) {
return NGX_ERROR;
}