public static final class MediaSessionConnector.DefaultMediaMetadataProvider extends java.lang.Object implements MediaSessionConnector.MediaMetadataProvider
MediaMetadataCompat with properties and extras propagated from the
active queue item to the session metadata.| Constructor and Description |
|---|
DefaultMediaMetadataProvider(android.support.v4.media.session.MediaControllerCompat mediaController,
java.lang.String metadataExtrasPrefix)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
android.support.v4.media.MediaMetadataCompat |
getMetadata(com.google.android.exoplayer2.Player player)
Gets the
MediaMetadataCompat to be published to the session. |
public DefaultMediaMetadataProvider(android.support.v4.media.session.MediaControllerCompat mediaController,
@Nullable
java.lang.String metadataExtrasPrefix)
mediaController - The MediaControllerCompat.metadataExtrasPrefix - A string to prefix extra keys which are propagated from the
active queue item to the session metadata.public android.support.v4.media.MediaMetadataCompat getMetadata(com.google.android.exoplayer2.Player player)
MediaSessionConnector.MediaMetadataProviderMediaMetadataCompat to be published to the session.getMetadata in interface MediaSessionConnector.MediaMetadataProviderplayer - The player for which to provide metadata.MediaMetadataCompat to be published to the session.