mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-14 11:01:55 +00:00
hls muxer: create only 7 initial gaps (#999)
instead of filling the entire segment list.
This commit is contained in:
parent
f28540b9f4
commit
4c2a4f9642
@ -440,9 +440,9 @@ func (p *muxerVariantFMP4Playlist) onSegmentFinalized(segment *muxerVariantFMP4S
|
||||
p.mutex.Lock()
|
||||
defer p.mutex.Unlock()
|
||||
|
||||
// create initial gap
|
||||
// add initial gaps, required by iOS LL-HLS
|
||||
if p.lowLatency && len(p.segments) == 0 {
|
||||
for i := 0; i < p.segmentCount; i++ {
|
||||
for i := 0; i < 7; i++ {
|
||||
p.segments = append(p.segments, &muxerVariantFMP4Gap{
|
||||
renderedDuration: segment.renderedDuration,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user