Skip to content

Commit 53e0c88

Browse files
Refine backup codec policy (#1022)
* Refine backup codec policy Make the default behavior to be a `preferred` value that the sfu will determine proper policy by room information. * rename * generated protobuf --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 4e01e16 commit 53e0c88

File tree

4 files changed

+28
-13
lines changed

4 files changed

+28
-13
lines changed

.changeset/rotten-experts-refuse.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"github.com/livekit/protocol": patch
3+
"@livekit/protocol": patch
4+
---
5+
6+
Refine backup codec policy

livekit/livekit_models.pb.go

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit/livekit_rtc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protobufs/livekit_models.proto

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,13 @@ enum ImageCodec {
7878

7979
// Policy for publisher to handle subscribers that are unable to support the primary codec of a track
8080
enum BackupCodecPolicy {
81-
// default behavior, regress to backup codec and all subscribers will receive the backup codec
82-
REGRESSION = 0;
81+
// default behavior, the track prefer to regress to backup codec and all subscribers will receive the backup codec,
82+
// the sfu will try to regress codec if possible but not assured.
83+
PREFER_REGRESSION = 0;
8384
// encoding/send the primary and backup codec simultaneously
8485
SIMULCAST = 1;
86+
// force the track to regress to backup codec, this option can be used in video conference or the publisher has limited bandwidth/encoding power
87+
REGRESSION = 2;
8588
}
8689

8790
message PlayoutDelay {

0 commit comments

Comments
 (0)