hls muxer: add milliseconds into EXT-X-PROGRAM-DATE-TIME
This commit is contained in:
parent
544c192103
commit
2b6ce9bc59
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue