upgrade to pion/webrtc v4 (#3213)

This commit is contained in:
cnderrauber
2024-11-28 16:05:38 +08:00
committed by GitHub
parent baf47db834
commit 54f9f7de51
52 changed files with 144 additions and 119 deletions
+3 -1
View File
@@ -16,7 +16,7 @@ package rtc
import (
"github.com/pion/sdp/v3"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
@@ -70,6 +70,8 @@ func NewWebRTCConfig(conf *config.Config) (*WebRTCConfig, error) {
// we don't want to use active TCP on a server, clients should be dialing
webRTCConfig.SettingEngine.DisableActiveTCP(true)
webRTCConfig.SettingEngine.EnableSCTPZeroChecksum(true)
if rtcConf.PacketBufferSize == 0 {
rtcConf.PacketBufferSize = 500
}