ContentBlock

A timeline block representing video content.

Author

Sergio Martinez - smartinez@brightcove.com

Functions

Link copied to clipboard
open fun create(durationMs: Long, absoluteOffsetMs: Long, relativeOffsetMs: Long): ContentBlock
open fun create(durationMs: Long, absoluteOffsetMs: Long, relativeOffsetMs: Long, adPod: AdPod): ContentBlock
Instantiates a new Content block.
Link copied to clipboard
Link copied to clipboard
Gets the absolute Block offset in milliseconds, that is, the offset with respect to the total video length (content + ads).
Link copied to clipboard
open fun getAdPod(): AdPod
If isAd returns true, use this method to get additional information about the Ad Pod.
Link copied to clipboard
open fun getDuration(): Long
Gets the duration of the block in milliseconds.
Link copied to clipboard
Gets the relative Block offset in milliseconds, that is, the offset with respect to the content length only (no Ads).
Link copied to clipboard
open 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 toString(): String
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.