From c50ca41e56d3943603c909ec1a7580105fc7d4c8 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Wed, 8 Jan 2025 16:00:37 +0100 Subject: [PATCH] Improve documentation of ConfigureTWCCSender Mention that it must be called after registering codecs. --- interceptor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/interceptor.go b/interceptor.go index 59c97b471a1..0a8bde25ec4 100644 --- a/interceptor.go +++ b/interceptor.go @@ -94,6 +94,7 @@ func ConfigureTWCCHeaderExtensionSender(mediaEngine *MediaEngine, interceptorReg } // ConfigureTWCCSender will setup everything necessary for generating TWCC reports. +// This must be called after registering codecs with the MediaEngine. func ConfigureTWCCSender(mediaEngine *MediaEngine, interceptorRegistry *interceptor.Registry) error { mediaEngine.RegisterFeedback(RTCPFeedback{Type: TypeRTCPFBTransportCC}, RTPCodecTypeVideo) if err := mediaEngine.RegisterHeaderExtension(RTPHeaderExtensionCapability{URI: sdp.TransportCCURI}, RTPCodecTypeVideo); err != nil {