mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-03 20:21:08 +02:00
moved vod sample access to fix flash security error
This commit is contained in:
parent
6f768dc4eb
commit
96855b1413
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue