Hi There, I am working with an exoplayer in a grid...
# android
d
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
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
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
Maybe try running your application with Leak Canary. You may find some memory leaks.
d
ok, Thanks @Gonçalo Palaio!