From 698132b07044cc408f58a6de44538969729e7fbb Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 22 Apr 2020 18:21:04 +0200 Subject: [PATCH] Add support for mobile version --- relay.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/relay.go b/relay.go index 735098b..7457b69 100644 --- a/relay.go +++ b/relay.go @@ -217,7 +217,8 @@ func newCall(mainOffer receivedSignal, r *activeRelay) { // Setup config peerConnectionConfig := webrtc.Configuration{ - ICEServers: callConf.iceServers, + ICEServers: callConf.iceServers, + SDPSemantics: webrtc.SDPSemanticsUnifiedPlanWithFallback, } // Create a new RTCPeerConnection @@ -396,13 +397,6 @@ func newCall(mainOffer receivedSignal, r *activeRelay) { clients := make(map[string]*webrtc.PeerConnection, 1) - // Close all clients connections at the end - defer func() { - for _, v := range clients { - v.Close() - } - }() - // Enter messags loop for {