Move defaultSrtpProtectionProfiles to constants.go

If a user is curious about the default value when configuring
SetSRTPProtectionProfiles this makes it easier to find.
This commit is contained in:
Sean DuBois
2021-05-04 13:01:34 -07:00
parent 80fd6d8d59
commit 9677e616b7
3 changed files with 9 additions and 2 deletions

View File

@@ -72,7 +72,8 @@ func (e *SettingEngine) DetachDataChannels() {
e.detach.DataChannels = true
}
// SetSRTPProtectionProfiles overrides default srtp protection profiles
// SetSRTPProtectionProfiles allows the user to override the default SRTP Protection Profiles
// The default srtp protection profiles are provided by the function `defaultSrtpProtectionProfiles`
func (e *SettingEngine) SetSRTPProtectionProfiles(profiles ...dtls.SRTPProtectionProfile) {
e.srtpProtectionProfiles = profiles
}