How to Insert multiple EXT-X-PROGRAM-DATE-TIME?

Hello,

I enabled EXT-X-PROGRAM-DATE-TIME referring to the following page.
https://www.wowza.com/docs/how-to-control-display-of-program-date-and-time-headers-in-hls-chunklists-for-live-streams-ext-x-program-date-time

The result is as follows.

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:79
#EXT-X-DISCONTINUITY-SEQUENCE:0

#EXT-X-PROGRAM-DATE-TIME:2021-08-02T10:29:07.141+00:00
#EXTINF:9.984,
media_w530591337_79.aac
#EXTINF:9.984,
media_w530591337_80.aac
#EXTINF:10.112,
media_w530591337_81.aac

But there’s a problem with that.
I would like to add EXT-X-PROGRAM-DATE-TIME to all media segments.
For example, I want to do the following.

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:79
#EXT-X-DISCONTINUITY-SEQUENCE:0

#EXT-X-PROGRAM-DATE-TIME:2021-08-02T10:29:07.141+00:00
#EXTINF:9.984,
media_w530591337_79.aac
#EXT-X-PROGRAM-DATE-TIME:2021-08-02T10:39:07.141+00:00
#EXTINF:9.984,
media_w530591337_80.aac
#EXT-X-PROGRAM-DATE-TIME:2021-08-02T10:49:07.141+00:00
#EXTINF:10.112,
media_w530591337_81.aac

Is it possible to do so?

That’s an excellent question and welcome to the forums @M_Y.

It IS possible yes, but it requires custom development. Our Wowza example from the doc you shared only adds the EXT-X-PROGRAM-DATE-TIME to the first segment in the playlist.

Perhaps you could seek help in the Hire a Consultant forum or reach out to Wowza Professional Services for help.

We also have a slack channel for streaming devs all around the world that may be able to help you and you can join here and ask if they can help you set that up.


You can sum EXTINF to find the time of any particular segment as well. If you’re not familiar with that, here is some more info
:https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming#section-4.3.2.1

And on Stack Overflow, if you search EXTINF, there are a lot of posts on it as well and media segments.