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 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

      public CharSequence getCurrentContentTitle(com.google.android.exoplayer2.Player player)
      Specified by:
      getCurrentContentTitle in interface com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
    • getCurrentContentText

      @Nullable public CharSequence getCurrentContentText(com.google.android.exoplayer2.Player player)
      Specified by:
      getCurrentContentText in interface com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter
    • createCurrentContentIntent

      @Nullable public android.app.PendingIntent createCurrentContentIntent(com.google.android.exoplayer2.Player player)
      Specified by:
      createCurrentContentIntent in interface com.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 interface com.google.android.exoplayer2.ui.PlayerNotificationManager.MediaDescriptionAdapter