Skip to content

FrameReader

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

A subscription’s or a want’s handlers that read its track as frames in decode order. Pass it, or spread it with handlers of your own, to subscribe or want. Each group is one subgroup, as the frame writer sends it, so a subgroup’s end is its group’s. A want read through a reader keeps drainMs at 0, the default: a drained old subscription’s groups would arrive after the Move, indistinguishable from the new one’s.

close(): void;

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

Stop delivering and cancel the pending poll. Later events are ignored.

void


onObject(object): void;

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

Feeds the object to the sequencer and delivers what is ready.

Parameter Type
object MoqtObject

void


onRestarted(): void;

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

A want’s Restart: the sequencer starts over and marks the next frame.

void


onSubgroupEnd(info): void;

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

Ends the object’s group.

Parameter Type
info { groupId: number; }
info.groupId number

void


onSubgroupReset(info): void;

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

Resets the object’s group: its remaining objects will not come.

Parameter Type
info { groupId: number; }
info.groupId number

void


onSubscribed(info): void;

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

Takes the track properties, which may declare the Timescale.

Parameter Type
info SubscribeOk

void


onSwitched(info): void;

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

A want’s Move: the same, with the new subscription’s track properties.

Parameter Type
info WantSwitchedInfo

void