Enforce max gif playback using unreserved count from exo pool.
This commit is contained in:
parent
c1ff2aeeff
commit
6999d1fbf1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue