Package com.brightcove.ssai.player
Interface PlaybackListener
- All Known Implementing Classes:
TimelineManager
public interface PlaybackListener
Listener for playback related events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(long duration) Indicates when the video playback has completed.voidonPause(long playheadPosition) Indicates a pause event.voidonPlay(long playheadPosition) Indicates a play event.
-
Method Details
-
onPlay
void onPlay(long playheadPosition) Indicates a play event.- Parameters:
playheadPosition- the playhead position
-
onPause
void onPause(long playheadPosition) Indicates a pause event.- Parameters:
playheadPosition- the playhead position
-
onComplete
void onComplete(long duration) Indicates when the video playback has completed.- Parameters:
duration- the duration
-