Skip to content

LocFrame

Defined in: webcodecs.ts:68

One encoded frame ready to publish as a LOC object: write(payload, { properties }).

key: boolean;

Defined in: webcodecs.ts:74

Whether the frame is a key frame; start a new group on one.


payload: Uint8Array;

Defined in: webcodecs.ts:70

Chunk helpers copy these bytes; packet adapters may borrow them. Keep stable until the write completes.


properties: KeyValuePair[];

Defined in: webcodecs.ts:76

The LOC object properties: Timestamp and Timescale, plus decoder configuration on key frames when supplied.


timestampUs: number;

Defined in: webcodecs.ts:72

Presentation time in microseconds, after any timestamp offset.