From 2fba39b7c72c09ce4ff519fff131ab0443162b06 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 23 Nov 2021 21:54:51 -0800 Subject: [PATCH] Increase the number of segments in HLS playlist. In testing this is not increasing latency and should improve stability and reliability for some people, since there will be a larger back buffer to work from. --- models/latencyLevels.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/models/latencyLevels.go b/models/latencyLevels.go index f90dd855c..30b4cd809 100644 --- a/models/latencyLevels.go +++ b/models/latencyLevels.go @@ -10,11 +10,11 @@ type LatencyLevel struct { // GetLatencyConfigs will return the available latency level options. func GetLatencyConfigs() map[int]LatencyLevel { return map[int]LatencyLevel{ - 0: {Level: 0, SecondsPerSegment: 1, SegmentCount: 3}, // Approx 5 seconds - 1: {Level: 1, SecondsPerSegment: 2, SegmentCount: 2}, // Approx 7-8 seconds - 2: {Level: 2, SecondsPerSegment: 3, SegmentCount: 3}, // Default Approx 11 seconds - 3: {Level: 3, SecondsPerSegment: 4, SegmentCount: 3}, // Approx 15 seconds - 4: {Level: 4, SecondsPerSegment: 5, SegmentCount: 4}, // Approx 18 seconds + 0: {Level: 0, SecondsPerSegment: 1, SegmentCount: 25}, // Approx 5 seconds + 1: {Level: 1, SecondsPerSegment: 2, SegmentCount: 15}, // Approx 8-9 seconds + 2: {Level: 2, SecondsPerSegment: 3, SegmentCount: 10}, // Default Approx 10 seconds + 3: {Level: 3, SecondsPerSegment: 4, SegmentCount: 8}, // Approx 15 seconds + 4: {Level: 4, SecondsPerSegment: 5, SegmentCount: 5}, // Approx 18 seconds } }