Compares the given position with this position.
Negative number if this position is before otherPosition. 0 if positions are equal. Positive number if this position is after otherPosition
Checks if the given position equals this position.
Get the offset of this position within the segment in milliseconds.
Get the segment that this position targets or null if the position is at the end of the timeline.
Get the index of the segment that this position targets.
If the position is at the end of the timeline, the index will equal timeline.getSegments().length
.
Get the timeline related with this position
Checks if this position is after the specified position
Checks if this position is before the specified position
Get the timeline position as a plain object that can be serialized to JSON.
Generated using TypeDoc
Describes a position within a SyncMediaTimeline instance. A position is defined using a segment index and an offset within that segment in milliseconds.