Media Playback with MediaSessionCompat (Android Development Patterns Ep 4)

45 471
43.3
Опубликовано 15 октября 2015, 18:21
MediaSessionCompat integrates your Android media app into the system, bringing media metadata and standardized controls on notifications, Android Wear, and the lock screen.

With the help of a Media Button Receiver (developer.android.com/training... your app will handle media buttons from bluetooth headsets and Android Wear devices with a single API for all Android 2.0+ devices.

For Android 4.0-4.4, you’ll no longer need to write deprecated RemoteControlClient code to get lock screen media controls as MediaSessionCompat will automatically wrap the API on those platform versions while giving you the best experience on Android 5.0+ devices.

You’ll also find that MediaSessionCompat works well with NotificationCompat.MediaStyle (developer.android.com/referenc... for the best media notifications across all API7+ devices.

#media #wearables #wear
Свежие видео
4 дня – 20 05816:32
Don't Upgrade
6 дней – 598 2285:15
What is YouTube 1080p Premium?
7 дней – 13 0181:01
SSD Upgrade with 990 PRO | Samsung
автотехномузыкадетское