TimelineBlock

interface TimelineBlock

A Timeline block represents linear and delimited part of a Timeline. It may represent content of a Video, or it can represent an Ad, such as preroll, midroll or postroll.

Author

Sergio Martinez - smartinez@brightcove.com

Inheritors

Functions

Link copied to clipboard
abstract fun getAbsoluteOffset(): Long
Gets the absolute Block offset in milliseconds, that is, the offset with respect to the total video length (content + ads).
Link copied to clipboard
abstract fun getAdPod(): AdPod
If isAd returns true, use this method to get additional information about the Ad Pod.
Link copied to clipboard
abstract fun getDuration(): Long
Gets the duration of the block in milliseconds.
Link copied to clipboard
abstract fun getRelativeOffset(): Long
Gets the relative Block offset in milliseconds, that is, the offset with respect to the content length only (no Ads).
Link copied to clipboard
abstract fun isAd(): Boolean
Specify if the block is an Ad.
Link copied to clipboard
open fun isDynamic(): Boolean
Returns whether the Timeline block is dynamic or not.
Link copied to clipboard
open fun updateAbsoluteOffset(absoluteOffset: Long)
Updates the absolute offset of this block.
Link copied to clipboard
open fun updateAdPod(adPod: AdPod)
Updates the AdPod of this block.
Link copied to clipboard
open fun updateDuration(duration: Long)
Updates the duration of this block.
Link copied to clipboard
open fun updateRelativeOffset(relativeOffset: Long)
Updates the relative offset of this block.