Example #1
0
        private void RegisterIceCandidateCallback()
        {
            _webRtcIceCandidateCallback = (handle, candidate, _) =>
            {
                IceCandidate?.Invoke(this, new WebRTCIceCandidateEventArgs(candidate));
            };

            NativeWebRTC.SetIceCandidateCb(Handle, _webRtcIceCandidateCallback).
            ThrowIfFailed("Failed to set ice candidate callback.");
        }