Skip to content

BackupCodecPolicy

Defined in: client-sdk-js/src/track/options.ts:328

Policy for handling backup codec behaviour when the primary codec is an advanced codec (VP9 / AV1 / H265).

PREFER_REGRESSION: 0;

Defined in: client-sdk-js/src/track/options.ts:333

Codec regression is preferred — the SFU will try to regress codec if possible but it is not guaranteed.


REGRESSION: 2;

Defined in: client-sdk-js/src/track/options.ts:337

Always use backup codec only.


SIMULCAST: 1;

Defined in: client-sdk-js/src/track/options.ts:335

Multi-codec simulcast: publish both primary and backup codec simultaneously.