TimelineManager

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

Author

Sergio Martinez (smartinez@brightcove.com)

Constructors

Link copied to clipboard
constructor(mBaseVideoView: BaseVideoView, mTimeline: Timeline)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addAdPodListener(adPodListener: AdPodListener): Boolean
Adds the Ad pod listener.
Link copied to clipboard
Gets the content length.
Link copied to clipboard
Gets current absolute playhead position.
Link copied to clipboard
Gets current relative duration.
Link copied to clipboard
Gets current relative playhead position.
Link copied to clipboard
open fun getPlayingAd(): Ad
Link copied to clipboard
Returns an AdPod if it's currently playing an Ad, otherwise returns null.
Link copied to clipboard
open fun getTimeline(): Timeline
Gets the timeline if available.
Link copied to clipboard
open fun getTotalLength(): Long
Gets the total length.
Link copied to clipboard
open fun isPlayingAd(): Boolean
Checks if an ad is currently being played.
Link copied to clipboard
open fun onComplete(duration: Long)
Indicates when the video playback has completed.
Link copied to clipboard
open fun onPause(playheadPosition: Long)
Indicates a pause event.
Link copied to clipboard
open fun onPlay(playheadPosition: Long)
Indicates a play event.
Link copied to clipboard
open fun onTick(lastPlayheadPositionMillis: Long, currentPlayheadPositionMillis: Long)
A tick represent an poll from the underlying video player.
Link copied to clipboard
open fun removeAdPodListener(adPodListener: AdPodListener): Boolean
Removes the Ad pod listener.
Link copied to clipboard
Removed all Ad pod listeners.
Link copied to clipboard
open fun reset()