Media Playback with MediaSessionCompat (Android Development Patterns Ep 4)

Subscribers:
1,350,000
Published on ● Video Link: https://www.youtube.com/watch?v=FBC1FgWe5X4



Duration: 4:49
44,205 views
344


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 (http://developer.android.com/training/managing-audio/volume-playback.html#PlaybackControls), 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 (https://developer.android.com/reference/android/support/v7/app/NotificationCompat.MediaStyle.html) for the best media notifications across all API7+ devices.

#media #wearables #wear







Tags:
android
google
playback
media
developer
developers
session
compat
mediasessioncompat
androiddev
lectures
tutorial
how to
lesson
development patterns
application
BuildBetterApps
product: android
fullname: Ian Lake
Location: MTV
Team: Scalable Advocacy
Type: DevByte
GDS: Full Production