Reduces video cache from 10 to 4 videos.

This commit is contained in:
Vitor Pamplona 2024-03-13 17:58:01 -04:00
parent 45974fb09b
commit 99850573f7

View File

@ -46,7 +46,7 @@ class MultiPlayerPlaybackManager(
private val playingMap = mutableMapOf<String, MediaSession>()
private val cache =
object : LruCache<String, MediaSession>(10) { // up to 10 videos in the screen at the same time
object : LruCache<String, MediaSession>(4) { // up to 4 videos in the screen at the same time
override fun entryRemoved(
evicted: Boolean,
key: String?,