Rakuten Viki Saurabh Arora May 28, 2019

Best Practices for Video Playback in Android

Article Summary

Saurabh Arora from Viki reveals the video playback mistakes that shock users and kill engagement. Most Android apps get at least 3 of these wrong.

The Viki engineering team has spent years perfecting video playback for millions of global viewers. This article distills their hard-won lessons into 7 actionable practices that separate great video apps from mediocre ones.

Key Takeaways

Critical Insight

Android's built-in frameworks handle most video playback UX challenges, but only if you know which APIs to call and when to call them.

The article reveals why using system volume controls saves you engineering headaches and which orientation mode actually matters for charging users.

About This Article

Problem

Video playback apps need to keep the screen on during playback. Many Android developers either skip this feature or get it wrong.

Solution

Saurabh Arora suggests calling setKeepScreenOn(true) when playback starts and setKeepScreenOn(false) when it ends. This uses Android's built-in screen management API.

Impact

Two lines of code solve a real problem. Users won't see their screen dim unexpectedly, and Viki's millions of viewers get uninterrupted playback.