Package 

Class TimelineManager

  • All Implemented Interfaces:
    com.brightcove.player.event.Component , com.brightcove.ssai.player.PlaybackListener , com.brightcove.ssai.timeline.ticker.TickerObserver

    @Emits(events = {EventType.SEEK_TO})@ListensFor(events = {SSAIEventType.SKIP_AD}) 
    public class TimelineManager
    extends AbstractComponent implements TickerObserver, PlaybackListener
                        

    Manages the state of the Timeline according to player playhead position.

    • Constructor Detail

      • TimelineManager

        TimelineManager(BaseVideoView mBaseVideoView, Timeline mTimeline)
    • Method Detail

      • isPlayingAd

         boolean isPlayingAd()

        Checks if an ad is currently being played.

      • onTick

         void onTick(long lastPlayheadPositionMillis, long currentPlayheadPositionMillis)

        A tick represent an poll from the underlying video player.

        Parameters:
        lastPlayheadPositionMillis - the last playhead position in milliseconds
        currentPlayheadPositionMillis - the current playhead position in milliseconds
      • 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