Class DefaultMediaDescriptionAdapter
- java.lang.Object
-
- com.brightcove.player.notifications.DefaultMediaDescriptionAdapter
-
- All Implemented Interfaces:
com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
public class DefaultMediaDescriptionAdapter extends java.lang.Object implements com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapterThe @{link MediaDescriptionAdapter} for the player notification displayed in the notification.
-
-
Constructor Summary
Constructors Constructor Description DefaultMediaDescriptionAdapter(MediaPlayback<com.google.android.exoplayer2.ExoPlayer> playback)Construct a new adapter from the current media playback.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.app.PendingIntentcreateCurrentContentIntent(com.google.android.exoplayer2.Player player)java.lang.CharSequencegetCurrentContentText(com.google.android.exoplayer2.Player player)java.lang.CharSequencegetCurrentContentTitle(com.google.android.exoplayer2.Player player)android.graphics.BitmapgetCurrentLargeIcon(com.google.android.exoplayer2.Player player, com.google.android.exoplayer2.ui.PlayerNotificationManager.BitmapCallback callback)
-
-
-
Constructor Detail
-
DefaultMediaDescriptionAdapter
public DefaultMediaDescriptionAdapter(MediaPlayback<com.google.android.exoplayer2.ExoPlayer> playback)
Construct a new adapter from the current media playback.- Parameters:
playback- The MediaPlayback with ExoPlayer as the Player.
-
-
Method Detail
-
getCurrentContentTitle
public java.lang.CharSequence getCurrentContentTitle(com.google.android.exoplayer2.Player player)
- Specified by:
getCurrentContentTitlein interfacecom.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
-
getCurrentContentText
@Nullable public java.lang.CharSequence getCurrentContentText(com.google.android.exoplayer2.Player player)
- Specified by:
getCurrentContentTextin interfacecom.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
-
createCurrentContentIntent
@Nullable public android.app.PendingIntent createCurrentContentIntent(com.google.android.exoplayer2.Player player)
- Specified by:
createCurrentContentIntentin interfacecom.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
-
getCurrentLargeIcon
@Nullable public android.graphics.Bitmap getCurrentLargeIcon(com.google.android.exoplayer2.Player player, com.google.android.exoplayer2.ui.PlayerNotificationManager.BitmapCallback callback)- Specified by:
getCurrentLargeIconin interfacecom.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
-
-