FrameSequencer
Defined in: sequencer.ts:149
One track’s frame sequencer. Feed it the subscription’s events, then poll() for frames.
Properties
Section titled “Properties”readonly stats: Readonly<FrameSequencerStats>;Defined in: sequencer.ts:166
Counters.
trackProperties
Section titled “trackProperties”trackProperties: readonly KeyValuePair[];Defined in: sequencer.ts:151
The track properties used to read timestamps; set from each SUBSCRIBE_OK.
Methods
Section titled “Methods”groupEnded()
Section titled “groupEnded()”groupEnded(groupId): void;Defined in: sequencer.ts:155
A group’s stream ended cleanly: no further objects of it will come.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
groupId |
number |
Returns
Section titled “Returns”void
groupReset()
Section titled “groupReset()”groupReset(groupId): void;Defined in: sequencer.ts:157
A group’s stream was reset: its remaining objects will not come.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
groupId |
number |
Returns
Section titled “Returns”void
object()
Section titled “object()”object(object): void;Defined in: sequencer.ts:153
An object arrived.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
object |
MoqtObject |
Returns
Section titled “Returns”void
poll()
Section titled “poll()”poll(maxFrames?): SequencerPoll;Defined in: sequencer.ts:164
Take the frames that are ready, at most maxFrames (default all), and when to poll again. A reader that cannot
take frames as they come polls one at a time, so each is judged late when it is taken.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
maxFrames? |
number |
Returns
Section titled “Returns”restart()
Section titled “restart()”restart(): void;Defined in: sequencer.ts:159
The subscription was replaced (a Restart or a Move): forget everything and reset the clock; group IDs start over.
Returns
Section titled “Returns”void