hls muxer: add milliseconds into EXT-X-PROGRAM-DATE-TIME

This commit is contained in:
aler9 2022-03-17 17:35:07 +01:00
parent 544c192103
commit 2b6ce9bc59
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (p *muxerStreamPlaylist) reader() io.Reader {
cnt += "\n" cnt += "\n"
for _, s := range p.segments { 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" + "#EXTINF:" + strconv.FormatFloat(s.duration().Seconds(), 'f', -1, 64) + ",\n" +
s.name + ".ts\n" s.name + ".ts\n"
} }