Automatically configure RTX codecs

This commit is contained in:
3DRX
2025-04-13 18:18:43 +08:00
parent 2de1ac4285
commit 842a58bf06
5 changed files with 263 additions and 2 deletions

View File

@@ -106,6 +106,7 @@ type SettingEngine struct {
fireOnTrackBeforeFirstRTP bool
disableCloseByDTLS bool
dataChannelBlockWrite bool
autoConfigRTXCodec bool
}
func (e *SettingEngine) getSCTPMaxMessageSize() uint32 {
@@ -551,3 +552,8 @@ func (e *SettingEngine) SetFireOnTrackBeforeFirstRTP(fireOnTrackBeforeFirstRTP b
func (e *SettingEngine) DisableCloseByDTLS(isEnabled bool) {
e.disableCloseByDTLS = isEnabled
}
// AutoConfigRTXCodec sets if the RTX codec should be automatically configured.
func (e *SettingEngine) AutoConfigRTXCodec(autoConfigRTXCodec bool) {
e.autoConfigRTXCodec = autoConfigRTXCodec
}