Skip to content

PlayoutClockOptions

Defined in: clock.ts:203

Options for createPlayoutClock. Durations are microseconds.

audioTimeoutUs?: number;

Defined in: clock.ts:217

Audio silent for longer than this hands pacing to the wall clock. Default 500,000.


lateDropUs?: number;

Defined in: clock.ts:207

A frame later than this is dropped. Default 40,000 (EBU R37’s audio-early limit).


maxVideoDelayUs?: number;

Defined in: clock.ts:209

The most a frame may lead the clock before the clock re-syncs. Default 1,000,000.


now?: MicrosecondClock;

Defined in: clock.ts:205

The time source, in microseconds. Defaults to performance.now().


targetLatencyUs?: number;

Defined in: clock.ts:215

The target latency: how far behind the position a frame may still be delivered for decoding, and how late a frame must be before wall pacing re-anchors on it. Default: twice the longest of the last four keyframe intervals reported, or 2,000,000 before any is.