From ec7e628003e6c6e47ad099d990b014dd7b586fa2 Mon Sep 17 00:00:00 2001 From: Yuriy Liskov Date: Tue, 16 Aug 2022 02:11:11 +0300 Subject: [PATCH] player: live buffer fix --- .../common/exoplayer/LiveDashManifestParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/LiveDashManifestParser.java b/common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/LiveDashManifestParser.java index 6b79d1eec..66ca70f95 100644 --- a/common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/LiveDashManifestParser.java +++ b/common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/LiveDashManifestParser.java @@ -33,9 +33,9 @@ public class LiveDashManifestParser extends DashManifestParser { private static final String TAG = LiveDashManifestParser.class.getSimpleName(); // Usually gaming streams. 10 hours max. private static final long MAX_PAST_STREAM_LENGTH_MS = 10 * 60 * 60 * 1_000; - // Should be close to zero but not zero (small buffer size fix on Radio Record). + // Should be close to zero but not zero (buffer size fix on Radio Record). // Higher values may produce 'url not working' error. - private static final long MAX_LIVE_STREAM_LENGTH_MS = 30 * 60 * 1_000; + private static final long MAX_LIVE_STREAM_LENGTH_MS = 5 * 60 * 1_000; private DashManifest mOldManifest; private long mOldSegmentNum;