From 2b6ce9bc5941a6116c965d6b7cda295440e593e4 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Thu, 17 Mar 2022 17:35:07 +0100 Subject: [PATCH] hls muxer: add milliseconds into EXT-X-PROGRAM-DATE-TIME --- internal/hls/muxer_stream_playlist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/hls/muxer_stream_playlist.go b/internal/hls/muxer_stream_playlist.go index 7985ed84..3df471fe 100644 --- a/internal/hls/muxer_stream_playlist.go +++ b/internal/hls/muxer_stream_playlist.go @@ -87,7 +87,7 @@ func (p *muxerStreamPlaylist) reader() io.Reader { cnt += "\n" for _, s := range p.segments { - cnt += "#EXT-X-PROGRAM-DATE-TIME:" + s.startTime.Format("2006-01-02T15:04:05+07:00") + "\n" + + cnt += "#EXT-X-PROGRAM-DATE-TIME:" + s.startTime.Format("2006-01-02T15:04:05.999+07:00") + "\n" + "#EXTINF:" + strconv.FormatFloat(s.duration().Seconds(), 'f', -1, 64) + ",\n" + s.name + ".ts\n" }