sergey-dryabzhinsky / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
1.02k stars 215 forks source link

Fix hls_datetime not working after the first fragment #346

Closed z411 closed 2 years ago

z411 commented 2 years ago

After the starting i counter got changed from 0 to start_i, someone seemingly forgot to change it for the datetime conditional as well, therefore creating a bug where the #EXT-X-PROGRAM-DATE-TIME header is shown only before the first fragment. But after the chunkfile starts rotating it disappears. This fixes it.

Fixes https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/345