player: live buffer fix

This commit is contained in:
Yuriy Liskov
2022-08-16 02:11:11 +03:00
parent f803694c03
commit ec7e628003

View File

@@ -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;