Skip to content

Commit 96855b1

Browse files
committed
moved vod sample access to fix flash security error
1 parent 6f768dc commit 96855b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ngx_rtmp_play_module.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -904,10 +904,6 @@ ngx_rtmp_play_open(ngx_rtmp_session_t *s, double start)
904904
return NGX_ERROR;
905905
}
906906

907-
if (ngx_rtmp_send_sample_access(s) != NGX_OK) {
908-
return NGX_ERROR;
909-
}
910-
911907
if (ngx_rtmp_play_join(s) != NGX_OK) {
912908
return NGX_ERROR;
913909
}
@@ -919,6 +915,10 @@ ngx_rtmp_play_open(ngx_rtmp_session_t *s, double start)
919915

920916
ngx_rtmp_send_recorded(s, 1);
921917

918+
if (ngx_rtmp_send_sample_access(s) != NGX_OK) {
919+
return NGX_ERROR;
920+
}
921+
922922
if (ngx_rtmp_play_do_init(s) != NGX_OK) {
923923
return NGX_ERROR;
924924
}

0 commit comments

Comments
 (0)