Skip to content

Commit

Permalink
Improve documentation of ConfigureTWCCSender
Browse files Browse the repository at this point in the history
Mention that it must be called after registering codecs.
  • Loading branch information
jech authored Jan 8, 2025
1 parent 6f6231b commit c50ca41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c50ca41

Please sign in to comment.