Google Sa-ryong Kang and Miguel Montemayor May 20, 2025

Peacock Optimizes Streaming with Jetpack Compose

Article Summary

NBCUniversal's Peacock just proved that building for foldables isn't just about supporting bigger screens. It's about future-proofing your entire streaming experience.

Sa-ryong Kang and Miguel Montemayor from Google's Developer Relations team break down how Peacock migrated to Jetpack Compose to handle the explosion of Android form factors. With users increasingly watching on mobile and foldable devices, the streaming app needed a solution that could adapt without interrupting playback or causing visual glitches.

Key Takeaways

Critical Insight

Peacock's Compose migration enables instant transitions between screen sizes without stream interruptions while positioning them for spatial computing.

The team's approach to Multiview for sports in Android XR hints at how spatial windows could transform contextual metadata display.

About This Article

Problem

Peacock needed to stream smoothly across many different Android devices, from phones to foldables to future XR platforms. The challenge was keeping quality high without reloads or visual glitches as screen sizes changed.

Solution

The team switched to Jetpack Compose and used the WindowSizeClass API to build layouts that adapt at specific viewport breakpoints. They paired this with Kotlin Coroutines and Flows to keep the UI responsive when the window size changed.

Impact

The app now works better across all device types. Users can start watching on a phone and pick up instantly on a larger unfolded screen with no reloads. This foundation also makes it easier to extend Peacock to Android XR later without major rework.