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 the
Activity
. By default, it returns true if the
notification is visible and the activity's intent contains PlaybackNotification.Extras.NOTIFICATION
.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
shouldRestorePlayback
(BaseVideoView view, PlaybackNotification notification) Check if playback should be restored for a givenBaseVideoView
.
-
Method Details
-
shouldRestorePlayback
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:
-