What ExoPlayer Doesn't Tell You: Lessons from Reddit's Full...
summary
Rewrote Reddit’s player on ExoPlayer into an opinionated library called ExoKit with a player pool and declarative UI components, cutting P50 load by 65% and P90 by 20% while reducing rebuffering 67%. Replaces ad hoc view models with self-hosted components so UI code is tiny and safe. Uses Choreographer for a choreographer-based seekbar to shave 7–8% off slow/frozen frames. Describes a playback error that hit ~2 million sessions, its media source/looper race, and pragmatic fixes (single-looper trade-offs or avoid sharing media sources).
AI-written summary · about
chapters (16)
- 0:00Introduction and background
- 1:24Video playback challenges overview
- 3:54Defining good video playback
- 8:09Performance metrics and observability
- 15:38ExoPlayer API limitations
- 18:49ExoKit architecture design
- 21:19Self-hosted UI components approach
- 24:10Seek bar optimization experiments
- 27:44Choreographer-based seek bar results
- 28:46Rebuffering reduction study
- 30:57Playback error 1004 investigation
- 33:25Media source looper race condition
- 35:12Decoding performance trade-offs
- 38:03Threading optimizations impact
- 39:28Performance improvements summary
- 40:11Key takeaways and conclusion
