Upgrade pion/ice to v2.0.0-rc.9

Add support for more stable ICE TCP API.
This commit is contained in:
Jerko Steiner
2020-08-01 08:37:51 +02:00
parent 18726f3478
commit cd3beeab24
8 changed files with 71 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ type SettingEngine struct {
disableSRTCPReplayProtection bool
vnet *vnet.Net
LoggerFactory logging.LoggerFactory
iceTCPPort int
iceTCPMux ice.TCPMux
}
// DetachDataChannels enables detaching data channels. When enabled
@@ -243,10 +243,10 @@ func (e *SettingEngine) SetSDPMediaLevelFingerprints(sdpMediaLevelFingerprints b
e.sdpMediaLevelFingerprints = sdpMediaLevelFingerprints
}
// SetICETCPPort to a non-zero value enables ICE-TCP listener. This API is experimental and
// is likely to change in the future.
func (e *SettingEngine) SetICETCPPort(port int) {
e.iceTCPPort = port
// SetICETCPMux enables ICE-TCP when set to a non-nil value. Make sure that
// NetworkTypeTCP4 or NetworkTypeTCP6 is enabled as well.
func (e *SettingEngine) SetICETCPMux(tcpMux ice.TCPMux) {
e.iceTCPMux = tcpMux
}
// AddSDPExtensions adds available and offered extensions for media type.