Handle prefer_regression for backup codec (#3554)
This commit is contained in:
@@ -53,8 +53,6 @@ const (
|
||||
tokenDefaultTTL = 10 * time.Minute
|
||||
)
|
||||
|
||||
var affinityEpoch = time.Date(2000, 0, 0, 0, 0, 0, 0, time.UTC)
|
||||
|
||||
type iceConfigCacheKey struct {
|
||||
roomName livekit.RoomName
|
||||
participantIdentity livekit.ParticipantIdentity
|
||||
@@ -468,6 +466,9 @@ func (r *RoomManager) StartSession(
|
||||
DataChannelMaxBufferedAmount: r.config.RTC.DataChannelMaxBufferedAmount,
|
||||
DatachannelSlowThreshold: r.config.RTC.DatachannelSlowThreshold,
|
||||
FireOnTrackBySdp: true,
|
||||
ShouldRegressCodec: func() bool {
|
||||
return r.config.Video.CodecRegressionThreshold == 0 || room.GetParticipantCount() < r.config.Video.CodecRegressionThreshold
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user