Media Encoder2027
Object

TimeRange

TimeRange class

Methods

→ TimeRange

Constructs a TimeRange object

→ TimeRange

Returns a new TimeRange with its start and end times aligned to the given FrameRate. The start time is aligned towards zero and the end time is aligned to the next frame greater than or equal to the end time. This TimeRange is not modified.

frameRate FrameRate
→ Boolean

Returns true if the given point in time is within the TimeRange.

time TickTime
static → TimeRange

Constructs a TimeRange object from start and end TickTime objects.

startTime TickTime
endTime TickTime
→ Boolean

Returns true if the given TimeRange is equal to this TimeRange.

other TimeRange
→ TimeRange

Returns a new TimeRange extended (or shrunk if the given time is negative) by the given time on both sides. This TimeRange is not modified.

time TickTime
→ Object

Returns the duration of the TimeRange object

→ Object

Returns the end time of the TimeRange object

→ Object

Returns the start time of the TimeRange object

→ TimeRange

Returns a new TimeRange which is the intersection of this range and the given range. If no intersection exists an invalid TimeRange is returned. This TimeRange is not modified.

other TimeRange

Parameter of 3

Method parameters that accept a TimeRange.

Return 5

Methods that return a TimeRange.