Options
All
  • Public
  • Public/Protected
  • All
Menu

Describes a position within a SyncMediaTimeline instance. A position is defined using a segment index and an offset within that segment in milliseconds.

Hierarchy

  • ISyncMediaTimelinePosition

Implemented by

Index

Methods

  • Compares the given position with this position.

    Parameters

    Returns number

    Negative number if this position is before otherPosition. 0 if positions are equal. Positive number if this position is after otherPosition

  • getOffsetWithinSegmentMs(): number
  • Get the offset of this position within the segment in milliseconds.

    Returns number

  • Get the segment that this position targets or null if the position is at the end of the timeline.

    Returns ISyncMediaSegment

  • getSegmentIndex(): number
  • 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.

    Returns number

Generated using TypeDoc