kopia lustrzana https://github.com/ryukoposting/Signal-Android
Enforce max gif playback using unreserved count from exo pool.
rodzic
c1ff2aeeff
commit
6999d1fbf1
|
@ -25,10 +25,10 @@ public final class GiphyMp4PlaybackPolicy {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int maxSimultaneousPlaybackInSearchResults() {
|
public static int maxSimultaneousPlaybackInSearchResults() {
|
||||||
return 12;
|
return ApplicationDependencies.getExoPlayerPool().getPoolStats().getMaxUnreserved();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int maxSimultaneousPlaybackInConversation() {
|
public static int maxSimultaneousPlaybackInConversation() {
|
||||||
return 4;
|
return ApplicationDependencies.getExoPlayerPool().getPoolStats().getMaxUnreserved() / 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue