mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 15:16:52 +08:00
Automatically configure RTX codecs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user