Package com.brightcove.player.playback
Interface PlaybackNotification.OnRestorePlaybackHandler
-
- All Known Implementing Classes:
BrightcovePlayer
,BrightcovePlayerActivity
- Enclosing class:
- PlaybackNotification
public static interface PlaybackNotification.OnRestorePlaybackHandler
Interface definition used to restore playback when re-creating an activity when the user clicks on the on-going notification. This should be implemented by theActivity
. By default, it returns true if the notification is visible and the activity's intent containsPlaybackNotification.Extras.NOTIFICATION
.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
shouldRestorePlayback(BaseVideoView view, PlaybackNotification notification)
Check if playback should be restored for a givenBaseVideoView
.
-
-
-
Method Detail
-
shouldRestorePlayback
default boolean shouldRestorePlayback(BaseVideoView view, PlaybackNotification notification)
Check if playback should be restored for a givenBaseVideoView
. This is used when launching an activity from the notification via aPendingIntent
.- Parameters:
view
- A view for playbacknotification
- The media-style notification used for on-going playback.- Returns:
- True if the playback should be set from the notification for the provided view.
- See Also:
PlaybackNotification.MediaDescriptionAdapter.createCurrentContentIntent(MediaPlayback)
-
-