SyncMediaSegmentData

data class SyncMediaSegmentData(val approximateDurationMs: Int, val durationType: SyncMediaSegmentDurationType, val readerDocumentIndexInSpine: Int, val refs: List<SyncMediaObjectRef>)

Represents a segment within a SyncMediaTimeline, containing information about all SyncMediaObjectRefs that will be played in parallel.

Constructors

Link copied to clipboard
fun SyncMediaSegmentData(approximateDurationMs: Int, durationType: SyncMediaSegmentDurationType, readerDocumentIndexInSpine: Int, refs: List<SyncMediaObjectRef>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The approximate duration of this segment. It is possible that the duration is updated during runtime as media is loaded and more information is available. If that happens, a syncMediaSegmentDurationChanged engine event will fire.

Link copied to clipboard

The duration type of this segment. If UNKNOWN the approximateDurationMs is set to 0

Link copied to clipboard

The index in spine of the reader document the segment is associated with.

Link copied to clipboard

The SyncMediaObjectRefs that belong to this segment.