mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 15:16:52 +08:00
Remove CandidateSelectionTimeout
pion/ice now will use any valid candidate pair to exchange data. Before we needed this we would wait to be selected before sending data, now we just use anything that is connected.
This commit is contained in:
@@ -24,14 +24,13 @@ type SettingEngine struct {
|
||||
DataChannels bool
|
||||
}
|
||||
timeout struct {
|
||||
ICEDisconnectedTimeout *time.Duration
|
||||
ICEFailedTimeout *time.Duration
|
||||
ICEKeepaliveInterval *time.Duration
|
||||
ICECandidateSelectionTimeout *time.Duration
|
||||
ICEHostAcceptanceMinWait *time.Duration
|
||||
ICESrflxAcceptanceMinWait *time.Duration
|
||||
ICEPrflxAcceptanceMinWait *time.Duration
|
||||
ICERelayAcceptanceMinWait *time.Duration
|
||||
ICEDisconnectedTimeout *time.Duration
|
||||
ICEFailedTimeout *time.Duration
|
||||
ICEKeepaliveInterval *time.Duration
|
||||
ICEHostAcceptanceMinWait *time.Duration
|
||||
ICESrflxAcceptanceMinWait *time.Duration
|
||||
ICEPrflxAcceptanceMinWait *time.Duration
|
||||
ICERelayAcceptanceMinWait *time.Duration
|
||||
}
|
||||
candidates struct {
|
||||
ICELite bool
|
||||
@@ -76,11 +75,6 @@ func (e *SettingEngine) SetICETimeouts(disconnectedTimeout, failedTimeout, keepA
|
||||
e.timeout.ICEKeepaliveInterval = &keepAliveInterval
|
||||
}
|
||||
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user