mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 07:06:51 +08:00
Add missing SettingEngine setters
ICE timeout options were added but not exposed
This commit is contained in:

committed by
Hugo Arregui

parent
d5e367a0d1
commit
3d7235b4ed
@@ -50,6 +50,31 @@ func (e *SettingEngine) SetConnectionTimeout(connectionTimeout, keepAlive time.D
|
||||
e.timeout.ICEKeepalive = &keepAlive
|
||||
}
|
||||
|
||||
// SetCandidateSelectionTimeout sets the max ICECandidateSelectionTimeout
|
||||
func (e *SettingEngine) SetCandidateSelectionTimeout(t time.Duration) {
|
||||
e.timeout.ICECandidateSelectionTimeout = &t
|
||||
}
|
||||
|
||||
// SetHostAcceptanceMinWait sets the ICEHostAcceptanceMinWait
|
||||
func (e *SettingEngine) SetHostAcceptanceMinWait(t time.Duration) {
|
||||
e.timeout.ICEHostAcceptanceMinWait = &t
|
||||
}
|
||||
|
||||
// SetSrflxAcceptanceMinWait sets the ICESrflxAcceptanceMinWait
|
||||
func (e *SettingEngine) SetSrflxAcceptanceMinWait(t time.Duration) {
|
||||
e.timeout.ICESrflxAcceptanceMinWait = &t
|
||||
}
|
||||
|
||||
// SetPrflxAcceptanceMinWait sets the ICEPrflxAcceptanceMinWait
|
||||
func (e *SettingEngine) SetPrflxAcceptanceMinWait(t time.Duration) {
|
||||
e.timeout.ICEPrflxAcceptanceMinWait = &t
|
||||
}
|
||||
|
||||
// SetRelayAcceptanceMinWait sets the ICERelayAcceptanceMinWait
|
||||
func (e *SettingEngine) SetRelayAcceptanceMinWait(t time.Duration) {
|
||||
e.timeout.ICERelayAcceptanceMinWait = &t
|
||||
}
|
||||
|
||||
// SetEphemeralUDPPortRange limits the pool of ephemeral ports that
|
||||
// ICE UDP connections can allocate from. This affects both host candidates,
|
||||
// and the local address of server reflexive candidates.
|
||||
|
Reference in New Issue
Block a user