mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-04-29 03:03:44 +02:00
fix media sequence counter
This commit is contained in:
parent
e475283630
commit
5c0423a788
|
@ -69,6 +69,7 @@ typedef struct {
|
|||
uint64_t key_id;
|
||||
ngx_uint_t nfrags;
|
||||
ngx_rtmp_hls_frag_t *frags; /* circular 2 * winfrags + 1 */
|
||||
uint64_t mediaseq;
|
||||
|
||||
ngx_uint_t audio_cc;
|
||||
ngx_uint_t video_cc;
|
||||
|
@ -601,7 +602,7 @@ ngx_rtmp_hls_write_playlist(ngx_rtmp_session_t *s)
|
|||
"#EXT-X-VERSION:3\n"
|
||||
"#EXT-X-MEDIA-SEQUENCE:%uL\n"
|
||||
"#EXT-X-TARGETDURATION:%ui\n",
|
||||
ctx->frag, max_frag);
|
||||
ctx->mediaseq++, max_frag);
|
||||
|
||||
if (hacf->type == NGX_RTMP_HLS_TYPE_EVENT) {
|
||||
p = ngx_slprintf(p, end, "#EXT-X-PLAYLIST-TYPE:EVENT\n");
|
||||
|
|
Loading…
Reference in a new issue