Fix: fragmentSize is below the minimum (#6238)

noticed logs " CacheDataSink: fragmentSize is below the minimum recommended value of 2097152. This may cause poor cache performance.

this fixes the issue by using ExoPlayers MIN_RECOMMENDED_FRAGMENT_SIZE. Unfortunately that field is private:
aeb306a164/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/CacheDataSink.java (L123)
pull/5671/head
Robin 2021-05-04 19:08:25 +02:00 zatwierdzone przez GitHub
rodzic c7510c628f
commit c85b97a484
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -297,7 +297,7 @@ public final class PlayerHelper {
}
public static long getPreferredFileSize() {
return 512 * 1024L;
return 2 * 1024 * 1024L; // ExoPlayer CacheDataSink.MIN_RECOMMENDED_FRAGMENT_SIZE
}
/**