Sync Media Segment Duration Changed Engine Event Data
class SyncMediaSegmentDurationChangedEngineEventData(val objectType: EngineEventDataObjectType = EngineEventDataObjectType.SYNC_MEDIA_SEGMENT_DURATION_CHANGED_EVENT, val type: EngineEventDataType, val approximateElapsedTimeMs: Int, val syncMediaTimelinePosition: SyncMediaTimelinePositionData, val newDurationMs: Int, val oldDurationMs: Int, val segmentIndex: Int) : SyncMediaEngineEventData
This event fires after the duration of a SyncMediaTimelineSegment has been updated. This can happen when the SyncMediaPlayer has received additional information about a segment's duration (such as after loading the media) and it did not match with the approximated value. The segment has been updated with the new duration value and the total duration of the timeline has also been updated.
Constructors
Link copied to clipboard
constructor(objectType: EngineEventDataObjectType = EngineEventDataObjectType.SYNC_MEDIA_SEGMENT_DURATION_CHANGED_EVENT, type: EngineEventDataType, approximateElapsedTimeMs: Int, syncMediaTimelinePosition: SyncMediaTimelinePositionData, newDurationMs: Int, oldDurationMs: Int, segmentIndex: Int)
Properties
Link copied to clipboard
The approximate elapsed time from timeline start in milliseconds
Link copied to clipboard
The new duration of the segment in milliseconds.
Link copied to clipboard
The type of engine event object this JSON structure represents.
Link copied to clipboard
The old duration of the segment in milliseconds.
Link copied to clipboard
The index of this segment within the timeline's segment list.
Link copied to clipboard
The current player timeline position.
Link copied to clipboard
The type of event.