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 {