1
Fork 0
mirror of https://github.com/jech/galene.git synced 2025-01-08 15:45:47 +01:00

Use empty interceptor registry.

This is the default in Pion v3, but not in v4.  This is required
since we do our own NACK handling and congestion control.
This commit is contained in:
Juliusz Chroboczek 2024-12-30 22:34:50 +01:00
parent be0c008929
commit 0b5cae31f4
2 changed files with 6 additions and 1 deletions

2
go.mod
View file

@ -9,6 +9,7 @@ require (
github.com/jech/cert v0.0.0-20240301122532-f491cf43a77d
github.com/jech/samplebuilder v0.0.0-20221109182433-6cbba09fc1c9
github.com/pion/ice/v2 v2.3.37
github.com/pion/interceptor v0.1.37
github.com/pion/rtcp v1.2.15
github.com/pion/rtp v1.8.10
github.com/pion/sdp/v3 v3.0.9
@ -24,7 +25,6 @@ require (
github.com/google/uuid v1.6.0 // indirect
github.com/pion/datachannel v1.5.10 // indirect
github.com/pion/dtls/v2 v2.2.12 // indirect
github.com/pion/interceptor v0.1.37 // indirect
github.com/pion/logging v0.2.2 // indirect
github.com/pion/mdns v0.0.12 // indirect
github.com/pion/randutil v0.1.0 // indirect

View file

@ -16,6 +16,7 @@ import (
"time"
"github.com/pion/ice/v2"
"github.com/pion/interceptor"
"github.com/pion/sdp/v3"
"github.com/pion/webrtc/v3"
@ -364,6 +365,7 @@ func APIFromCodecs(codecs []webrtc.RTPCodecParameters) (*webrtc.API, error) {
if !UseMDNS {
s.SetICEMulticastDNSMode(ice.MulticastDNSModeDisabled)
}
m := webrtc.MediaEngine{}
for _, codec := range codecs {
@ -388,9 +390,12 @@ func APIFromCodecs(codecs []webrtc.RTPCodecParameters) (*webrtc.API, error) {
webrtc.RTPHeaderExtensionCapability{sdp.SDESRTPStreamIDURI},
webrtc.RTPCodecTypeVideo)
ir := interceptor.Registry{}
return webrtc.NewAPI(
webrtc.WithSettingEngine(s),
webrtc.WithMediaEngine(&m),
webrtc.WithInterceptorRegistry(&ir),
), nil
}