updated server to webrtc v3 (untested)
This commit is contained in:
@@ -2,9 +2,7 @@ package rtc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
|
||||
"github.com/pion/sdp/v3"
|
||||
"github.com/pion/webrtc/v3"
|
||||
|
||||
"github.com/livekit/livekit-server/pkg/config"
|
||||
@@ -54,19 +52,6 @@ func NewWebRTCConfig(conf *config.RTCConfig, externalIP string) (*WebRTCConfig,
|
||||
s.SetNAT1To1IPs([]string{externalIP}, webrtc.ICECandidateTypeHost)
|
||||
}
|
||||
|
||||
// Configure required extensions
|
||||
sdes, _ := url.Parse(sdp.SDESRTPStreamIDURI)
|
||||
sdedMid, _ := url.Parse(sdp.SDESMidURI)
|
||||
exts := []sdp.ExtMap{
|
||||
{
|
||||
URI: sdes,
|
||||
},
|
||||
{
|
||||
URI: sdedMid,
|
||||
},
|
||||
}
|
||||
s.AddSDPExtensions(webrtc.SDPSectionVideo, exts)
|
||||
|
||||
return &WebRTCConfig{
|
||||
Configuration: c,
|
||||
SettingEngine: s,
|
||||
|
||||
Reference in New Issue
Block a user