https://kotlinlang.org logo
#android
Title
# android
d

Deepti M

07/09/2020, 6:04 PM
Hi There, I am working with an exoplayer in a grid and it is consuming too much memory. Can anybody provide me any guidance on how to manage exoplayer in a grid? Thanks!
g

Gonçalo Palaio

07/09/2020, 10:39 PM
It depends on the problem you’re facing. If you have multiple instances of a player maybe take a look at this: https://github.com/google/ExoPlayer/issues/867
d

Deepti M

07/10/2020, 11:41 AM
No, I used singlton pattern to create the player instance so that's in control but still the memory is not. I don't know why but I am feeling the recycle-views are not getting recycled. They are holding the memory. Is it possible?
Here is my code sample https://bitbucket.org/deeptimota/video_grid. Please help me to proceed
g

Gonçalo Palaio

07/12/2020, 8:54 PM
Maybe try running your application with Leak Canary. You may find some memory leaks.
d

Deepti M

07/12/2020, 8:58 PM
ok, Thanks @Gonçalo Palaio!
13 Views