Skip to content

FrameReaderOptions

Defined in: relay-sdks/ts/src/frame-reader.ts:31

Options for createFrameReader.

Type Parameter
F
onCatchUp?(): void;

Defined in: relay-sdks/ts/src/frame-reader.ts:43

The sequencer signalled a catch-up (@caprid/moq-media’s catchUpAfterUs): frames keep arriving too late to use. Replace the subscription at the live edge, which drops what the relay still holds queued for it: a supervised subscriber’s catchUp(key) does, and its onRestarted restarts this reader. Called synchronously, after the frames of the same poll; an exception from it goes to console.error.

void


onFrame(frame): void;

Defined in: relay-sdks/ts/src/frame-reader.ts:36

Called synchronously with each frame, in decode order. An exception from it goes to console.error and the reader carries on.

Parameter Type
frame F

void