Exoplayer using too much cpu in recyclerview

344
November 28, 2016, at 7:42 PM

Ok so I started working with google's ExoPlayer and created a custom view that I can initiate and call myView.setUp(VideoUri) to start playing a video with exoPlayer, now everything works smoothly when the view is in an activity, user cpu usage for the app is between 9-11% then in another activity I have a recyclerview and only one custom view that I attach and detach to a container in the recyclerview's items knowing that the items are sized so only one item is completely visible at a time. Once the customview is attached to an item in the recyclerview cpu usage jumps to nearly 30-35% which after a few minutes causes the phone to heat up. the custom view's performance is fine since it performs well when not in a list now I would like to know what could be causing this jump in CPU usage once it is in a list ? Does exoplayer behave differently when placed in a list?

READ ALSO
PHP OpenWeather

PHP OpenWeather

Alright so I am having some troubles understanding how to use the open weather APII have tried using it as

360
module.exports.report.logon is not a function

module.exports.report.logon is not a function

I'm trying to get the login to work on a scheduler, but getting the moduleexports

234
Field 'ID' doesn't have a default value

Field 'ID' doesn't have a default value

I am using MySQL with Hibernate and JPA2

257