Interface PlaybackListener

All Known Implementing Classes:
TimelineManager

public interface PlaybackListener
Listener for playback related events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onComplete(long duration)
    Indicates when the video playback has completed.
    void
    onPause(long playheadPosition)
    Indicates a pause event.
    void
    onPlay(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