From e80ae8019e96015390bfa70732049d8f4f9769bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 30 Jan 2023 11:31:30 +0100 Subject: [PATCH] set answering dtls role as server. (#24) --- internal/webrtc/manager.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/webrtc/manager.go b/internal/webrtc/manager.go index c4f771b6..4b348110 100644 --- a/internal/webrtc/manager.go +++ b/internal/webrtc/manager.go @@ -170,6 +170,9 @@ func (manager *WebRTCManagerCtx) newPeerConnection(codecs []codec.RTPCodec, logg settings.SetICETimeouts(disconnectedTimeout, failedTimeout, keepAliveInterval) settings.SetNAT1To1IPs(manager.config.NAT1To1IPs, webrtc.ICECandidateTypeHost) settings.SetLite(manager.config.ICELite) + // make sure server answer sdp setup as passive, to not force DTLS renegotiation + // otherwise iOS renegotiation fails with: Failed to set SSL role for the transport. + settings.SetAnsweringDTLSRole(webrtc.DTLSRoleServer) var networkType []webrtc.NetworkType