Enforce max gif playback using unreserved count from exo pool.

main
Alex Hart 2022-10-28 15:17:05 -03:00 zatwierdzone przez Cody Henthorne
rodzic c1ff2aeeff
commit 6999d1fbf1
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -25,10 +25,10 @@ public final class GiphyMp4PlaybackPolicy {
}
public static int maxSimultaneousPlaybackInSearchResults() {
return 12;
return ApplicationDependencies.getExoPlayerPool().getPoolStats().getMaxUnreserved();
}
public static int maxSimultaneousPlaybackInConversation() {
return 4;
return ApplicationDependencies.getExoPlayerPool().getPoolStats().getMaxUnreserved() / 3;
}
}