docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate DelegateOnIceCandidate

    Delegate to be called when a new RTCIceCandidate is identified and added to the local peer, when all candidates for a specific generation are identified and added, and when the ICE gathering on all transports is complete.

    Namespace: Unity.WebRTC
    Assembly: Unity.WebRTC.dll
    Syntax
    public delegate void DelegateOnIceCandidate(RTCIceCandidate candidate)
    Parameters
    Type Name Description
    RTCIceCandidate candidate

    RTCIceCandidate object containing the candidate associated with the event.

    Remarks

    This delegate is called when:

    • An RTCIceCandidate is added to the local peer using SetLocalDescription.
    • Every RTCIceCandidate correlated with a specific username/password combination are added.
    • ICE gathering for all transports is finished.
    Examples
    peerConnection.OnIceCandidate = candidate =>
    {
        otherPeerConnection.AddIceCandidate(candidate);
    }

    See Also

    RTCIceCandidate
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)