Skip to content

Commit

Permalink
RSDK-8547: Disable SRTP replay protection. (#294)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Gottlieb <[email protected]>
  • Loading branch information
nicksanford and dgottlieb committed Aug 15, 2024
1 parent 445a165 commit af9572d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpc/wrtc_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ func newWebRTCAPI(isClient bool, logger utils.ZapCompatibleLogger) (*webrtc.API,
} else {
settingEngine.SetICEMulticastDNSMode(ice.MulticastDNSModeQueryOnly)
}
// RSDK-8547: Replay protection can result in dropped video data. Specifically when there are
// multiple remote hops in getting video from the camera to the user. And these intermediate
// hops restart.
settingEngine.DisableSRTPReplayProtection(true)
settingEngine.DisableSRTCPReplayProtection(true)

// by including the loopback candidate, we allow an offline mode such that the
// server/client (controlled/controlling) can include 127.0.0.1 as a candidate
// while the client (controlling) provides an mDNS candidate that may resolve to 127.0.0.1.
Expand Down

0 comments on commit af9572d

Please sign in to comment.