Skip to content

Commit 52cc4a0

Browse files
committed
Add JavaDoc for PlayerDataSource.PLAYLIST_STUCK_TARGET_DURATION_COEFFICIENT
1 parent e103e48 commit 52cc4a0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/helper/PlayerDataSource.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ public class PlayerDataSource {
2121

2222
public static final int LIVE_STREAM_EDGE_GAP_MILLIS = 10000;
2323

24+
/**
25+
* An approximately 4.3 times greater value than the
26+
* {@link DefaultHlsPlaylistTracker#DEFAULT_PLAYLIST_STUCK_TARGET_DURATION_COEFFICIENT default}
27+
* to ensure that (very) low latency livestreams which got stuck for a moment don't crash too
28+
* early.
29+
*/
2430
private static final double PLAYLIST_STUCK_TARGET_DURATION_COEFFICIENT = 15;
2531
private static final int MANIFEST_MINIMUM_RETRY = 5;
2632
private static final int EXTRACTOR_MINIMUM_RETRY = Integer.MAX_VALUE;

0 commit comments

Comments
 (0)