Skip to content

Commit

Permalink
add WebRTC timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Feb 15, 2021
1 parent 595259b commit 56b1aa9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/internal/webrtc/webrtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"io"
"strings"
"time"

"github.com/pion/interceptor"
"github.com/pion/webrtc/v3"
Expand Down Expand Up @@ -98,6 +99,7 @@ func (manager *WebRTCManager) CreatePeer(id string, session types.Session) (stri

settings.SetEphemeralUDPPortRange(manager.config.EphemeralMin, manager.config.EphemeralMax)
settings.SetNAT1To1IPs(manager.config.NAT1To1IPs, webrtc.ICECandidateTypeHost)
settings.SetICETimeouts(6 * time.Second, 6 * time.Second, 3 * time.Second)
settings.SetSRTPReplayProtectionWindow(512)

// Create MediaEngine based off sdp
Expand Down

0 comments on commit 56b1aa9

Please sign in to comment.