Class DefaultMediaDescriptionAdapter
java.lang.Object
com.brightcove.player.notifications.DefaultMediaDescriptionAdapter
- All Implemented Interfaces:
com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
public class DefaultMediaDescriptionAdapter
extends Object
implements com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
The @{link MediaDescriptionAdapter} for the player notification displayed in the notification.
-
Constructor Summary
ConstructorDescriptionDefaultMediaDescriptionAdapter
(MediaPlayback<com.google.android.exoplayer2.ExoPlayer> playback) Construct a new adapter from the current media playback. -
Method Summary
Modifier and TypeMethodDescriptionandroid.app.PendingIntent
createCurrentContentIntent
(com.google.android.exoplayer2.Player player) getCurrentContentText
(com.google.android.exoplayer2.Player player) getCurrentContentTitle
(com.google.android.exoplayer2.Player player) android.graphics.Bitmap
getCurrentLargeIcon
(com.google.android.exoplayer2.Player player, com.google.android.exoplayer2.ui.PlayerNotificationManager.BitmapCallback callback) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
getCurrentSubText
-
Constructor Details
-
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 Details
-
getCurrentContentTitle
- Specified by:
getCurrentContentTitle
in interfacecom.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
-
getCurrentContentText
- Specified by:
getCurrentContentText
in interfacecom.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
-
createCurrentContentIntent
@Nullable public android.app.PendingIntent createCurrentContentIntent(com.google.android.exoplayer2.Player player) - Specified by:
createCurrentContentIntent
in 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:
getCurrentLargeIcon
in interfacecom.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
-