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

[HLS] EXT-X-PROGRAM-DATE-TIME being sent only at the beginning #345

Closed z411 closed 2 years ago

z411 commented 2 years ago

I have hls_datetime system; set in my config file, but the #EXT-X-PROGRAM-DATE-TIME is sent only when the first fragment is in the m3u8 file (that is, when the stream starts), but after starts rotating the header disappears. How can I make it stay there?

z411 commented 2 years ago

Found the issue. In this line: if ((i == 0 || f->discont) && f->datetime && f->datetime->len > 0) {

i == 0 should be i == start_i.

z411 commented 2 years ago

Created PR in !346