Skip to content

AudioTrackInfo

Defined in: catalog.ts:42

The audio track buildMsfCatalog advertises. Unset fields default to Opus, 48 kHz, stereo.

altGroup?: number;

Defined in: catalog.ts:64

Alternate group (msf-01 §5.2.12): tracks sharing one are alternate versions of the same content, such as simulcast layers, and a viewer subscribes to one of them. Members share a role and a render group.


bitrate?: number;

Defined in: catalog.ts:52

Bits per second.


channelConfig?: string;

Defined in: catalog.ts:50

Channel config string (§5.2.21), e.g. '2' or '5.1'.


codec?: string;

Defined in: catalog.ts:46

WebCodecs registry codec string, e.g. 'opus'.


initData?: Uint8Array<ArrayBufferLike>;

Defined in: catalog.ts:54

Decoder init data, e.g. an AAC AudioSpecificConfig — Opus carries none.


name?: string;

Defined in: catalog.ts:44

Track name. Default AUDIO_TRACK.


renderGroup?: number;

Defined in: catalog.ts:59

Render group (msf-01 §5.2.11): tracks sharing one play together on one timeline. Default 1; give a second source, such as a screen share and its audio, its own.


samplerate?: number;

Defined in: catalog.ts:48

Output sample rate (§5.2.20). Always 48000 for Opus.