Menu

My 1.17 MB player now listens to the battery: thermal-aware decode + a metered-data mode
📰

My 1.17 MB player now listens to the battery: thermal-aware decode + a metered-data mode

DEV Community: android·hammi·2 days ago
#l40bv7DJ
#devtoandroid#devto#dev#phone#player
Reading 0:00
15s threshold

i've been building a small 4K media player client for Android + Windows (RKMovies), and two complaints kept showing up in my own testing: on budget phones, long 4K sessions make the back of the phone uncomfortably warm, and on metered connections the player can chew through a daily data quota. both felt like "just use the hardware decoder" problems at first. they weren't.

the thermal part

the obvious move is a hardware-accelerated MediaCodec, and that was already in. the surprise was how fast even hardware decode heats a mid-tier chip when the phone is already warm (charging while playing, or a hot room). numbers i found while researching this: hardware HEVC/AV1 decode draws roughly 0.8-1.3 W, while software VP9 on the same phone draws 3.2-4.5 W and thermally throttles in under two minutes.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.