Update pion/webrtc (#346)
Also use DTLSRoleServer in publisher peer connection to get around potentially a Chrome browser issue in long latency links.
This commit is contained in:
@@ -28,7 +28,7 @@ require (
|
||||
github.com/pion/stun v0.3.5
|
||||
github.com/pion/transport v0.13.0
|
||||
github.com/pion/turn/v2 v2.0.6
|
||||
github.com/pion/webrtc/v3 v3.1.15
|
||||
github.com/pion/webrtc/v3 v3.1.16
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/prometheus/client_golang v1.11.0
|
||||
github.com/rs/cors v1.8.2
|
||||
|
||||
@@ -206,8 +206,8 @@ github.com/pion/turn/v2 v2.0.6 h1:AsXjSPR6Im15DMTB39NlfdTY9BQfieANPBjdg/aVNwY=
|
||||
github.com/pion/turn/v2 v2.0.6/go.mod h1:+y7xl719J8bAEVpSXBXvTxStjJv3hbz9YFflvkpcGPw=
|
||||
github.com/pion/udp v0.1.1 h1:8UAPvyqmsxK8oOjloDk4wUt63TzFe9WEJkg5lChlj7o=
|
||||
github.com/pion/udp v0.1.1/go.mod h1:6AFo+CMdKQm7UiA0eUPA8/eVCTx8jBIITLZHc9DWX5M=
|
||||
github.com/pion/webrtc/v3 v3.1.15 h1:JUNR95xdhcRliAaUQjnuttFPdxGxW/ixcwnHRjQFWOU=
|
||||
github.com/pion/webrtc/v3 v3.1.15/go.mod h1:2brQHPJl93QVgbcVElY5syrrEzx5PXCxjrQ5g7Hwky8=
|
||||
github.com/pion/webrtc/v3 v3.1.16 h1:/+0pX11In+9RStdXJAPw31A0UJjWbJtTBEGqj0YG+AA=
|
||||
github.com/pion/webrtc/v3 v3.1.16/go.mod h1:2brQHPJl93QVgbcVElY5syrrEzx5PXCxjrQ5g7Hwky8=
|
||||
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
|
||||
@@ -64,6 +64,17 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
|
||||
LoggerFactory: logging.NewLoggerFactory(logger.GetLogger()),
|
||||
}
|
||||
s.SetLite(true)
|
||||
//
|
||||
// This introduces a half-RTT extra latency in connection setup,
|
||||
// i. e. if SFU is acting as DTLSRoleClient, it can send the client-hello as soon
|
||||
// as it is ready. With this change, signalling has to be sent back to the client
|
||||
// and client has to do client-hello which adds half RTT.
|
||||
//
|
||||
// Doing this to address https://github.com/pion/webrtc/issues/2089. This may be
|
||||
// a Chrome browser issue and can potentially be removed once we understand the source
|
||||
// of the issue better.
|
||||
//
|
||||
s.SetAnsweringDTLSRole(webrtc.DTLSRoleServer)
|
||||
|
||||
if externalIP != "" {
|
||||
s.SetNAT1To1IPs([]string{externalIP}, webrtc.ICECandidateTypeHost)
|
||||
|
||||
Reference in New Issue
Block a user