Documentation

BackupCodecPolicy
in package

Policy for publisher to handle subscribers that are unable to support the primary codec of a track

Protobuf type livekit.BackupCodecPolicy

Table of Contents

Constants

PREFER_REGRESSION  = 0
default behavior, the track prefer to regress to backup codec and all subscribers will receive the backup codec, the sfu will try to regress codec if possible but not assured.
REGRESSION  = 2
force the track to regress to backup codec, this option can be used in video conference or the publisher has limited bandwidth/encoding power
SIMULCAST  = 1
encoding/send the primary and backup codec simultaneously

Properties

$valueToName  : mixed

Methods

name()  : mixed
value()  : mixed

Constants

PREFER_REGRESSION

default behavior, the track prefer to regress to backup codec and all subscribers will receive the backup codec, the sfu will try to regress codec if possible but not assured.

public mixed PREFER_REGRESSION = 0

Generated from protobuf enum PREFER_REGRESSION = 0;

REGRESSION

force the track to regress to backup codec, this option can be used in video conference or the publisher has limited bandwidth/encoding power

public mixed REGRESSION = 2

Generated from protobuf enum REGRESSION = 2;

SIMULCAST

encoding/send the primary and backup codec simultaneously

public mixed SIMULCAST = 1

Generated from protobuf enum SIMULCAST = 1;

Properties

$valueToName

private static mixed $valueToName = [self::PREFER_REGRESSION => 'PREFER_REGRESSION', self::SIMULCAST => 'SIMULCAST', self::REGRESSION => 'REGRESSION']

Methods


        
On this page

Search results