mirror of
https://gitlab.com/comunic/ComunicRTCProxy
synced 2024-12-26 13:38:55 +00:00
Add support for mobile version
This commit is contained in:
parent
b65253d144
commit
698132b070
8
relay.go
8
relay.go
@ -218,6 +218,7 @@ func newCall(mainOffer receivedSignal, r *activeRelay) {
|
|||||||
// Setup config
|
// Setup config
|
||||||
peerConnectionConfig := webrtc.Configuration{
|
peerConnectionConfig := webrtc.Configuration{
|
||||||
ICEServers: callConf.iceServers,
|
ICEServers: callConf.iceServers,
|
||||||
|
SDPSemantics: webrtc.SDPSemanticsUnifiedPlanWithFallback,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a new RTCPeerConnection
|
// Create a new RTCPeerConnection
|
||||||
@ -396,13 +397,6 @@ func newCall(mainOffer receivedSignal, r *activeRelay) {
|
|||||||
|
|
||||||
clients := make(map[string]*webrtc.PeerConnection, 1)
|
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
|
// Enter messags loop
|
||||||
for {
|
for {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user