Sync Media Segment Data
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
constructor(approximateDurationMs: Int, durationType: SyncMediaSegmentDurationType, readerDocumentIndexInSpine: Int, refs: List<SyncMediaObjectRef>)
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.