Skip to content
Type

EncodedPacketSideData

Holds additional data accompanying an EncodedPacket.

ts
type EncodedPacketSideData = {
	alpha?: Uint8Array;
	alphaByteLength?: number;
};

Used by

Properties

alpha

ts
alpha?: Uint8Array<ArrayBufferLike>;

An encoded alpha frame, encoded with the same codec as the packet. Typically used for transparent videos, where the alpha information is stored separately from the color information.

alphaByteLength

ts
alphaByteLength?: number;

The actual byte length of the alpha data. This field is useful for metadata-only packets where the alpha field contains no bytes.

Released under the Mozilla Public License 2.0.