Playing nicely with media controls
summary
Android 11 replaces stacked media notifications with a dedicated media carousel that shows up to five recent media sessions and uses existing MediaSession APIs (since Lollipop) so no new SDK gating. Media resumption requires a MediaBrowserService and must return a recent root; UAMP proves a reliable implementation by using a Glide image cache and serialize metadata to SharedPreferences because naive network loads at boot fail. Seamless transfer uses MediaRouter AndroidX 1.2.0 RC02+, a media transfer receiver, and handles route reasons (stopped vs route changed).
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:57Why new media controls
- 2:00Creating media session
- 4:28Updating metadata
- 5:52Media resumption
- 9:44Resuming playback
- 11:32Caching for reliability
- 12:13Seamless transfer
- 15:44Summary
- 16:27Q&A
related talks
13mWhat's new in Android Media
40mState of Media Playback
42mLet's make some noise with Android
13mWhat's new in Android media
33mWhat’s on tonight? New developments in Android and Google TV
33mAndroid Wear, TV, Auto & Media: Technical Lightning talks!
51mDeep Dive into Android Auto — From How to Use It to the Technologies Behind It
35mControlling Android Sound
