Skip to content

AudioInputClock

Defined in: audio-player.ts:78

What an input calls on its clock. A PlayoutClock qualifies; so does a player’s own clock, such as one that holds its position while the buffer is dry.

readonly targetLatencyUs: number;

Defined in: audio-player.ts:80

Caps the jitter buffer: it holds no more than this less the output delay and 40 ms.

localNow(): number;

Defined in: audio-player.ts:82

The time source reports are measured on, in microseconds.

number


reportAudio(
timestampUs,
atUs,
stats
): void;

Defined in: audio-player.ts:88

The audio with this timeline timestamp is audible at local time atUs. stats are the input’s, refreshed with this report: a newer playStarts says the audio is from after the buffer last ran dry, not the tail before it. The object is updated in place by later reports, so copy what you keep.

Parameter Type
timestampUs number
atUs number
stats Readonly<AudioInputStats>

void


stopAudio(): void;

Defined in: audio-player.ts:90

The input was removed.

void