I write an mp4 player web app using JavaScript audio and video APIs. It runs on Chrome and works greatly as expected on a 8Gb-RAM wall-plug computer. However, it drains buttery pretty fast on a mobile phone. In my case, it's a Samsung Galaxy S4. I need suggestion how to write a memory-efficient app that lets user enjoys long viewing experience on the go. My service is that I store mp4 files on the server. Upon the user's request, the server will start chopping data file (files- in case of playlist) into chunks and streaming those chunks into the browser's memory then the JavaScript is working nonstop to grab those chucks of data and process them as audio and video outputs (they are separated data which must process in sync). Thank you,