When embedding the player.twitch.tv for a mobile website, the CPU usage and battery drain are really quite bad. Within 5-10 mins the CPU was running hot, like really hot to the touch and my battery went down 18% in 30 mins of playing a stream. This is on a OnePlus One Android device using the Chrome browser. It actually seems worse in the default browser. I can’t imagine what it would be like for phones with even older CPU’s.
Then in the actual Twitch Android app the CPU must run cooler as my phone was not hot to the touch. The battery usage for 30 mins of stream time was 9% and that’s with the chat going also.
What is the cause of this? Is it the JS code or just the fact it’s in a browser? Can we get some optimizations at all?