Support video layer mode from client and make most of the code mime aware (#3843)

This commit is contained in:
Raja Subramanian
2025-08-09 21:26:11 +05:30
committed by GitHub
parent f2da4444b4
commit 1b2289137d
21 changed files with 673 additions and 524 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ import (
"github.com/pion/webrtc/v4"
"github.com/stretchr/testify/require"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
@@ -33,7 +34,7 @@ func disable(f *Forwarder) {
func newForwarder(codec webrtc.RTPCodecCapability, kind webrtc.RTPCodecType) *Forwarder {
f := NewForwarder(kind, logger.GetLogger(), true, nil)
f.DetermineCodec(codec, nil)
f.DetermineCodec(codec, nil, livekit.VideoLayer_MODE_UNUSED)
return f
}