The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection.

MDN Reference

interface RTCIceCandidate {
    address: null | string;
    candidate: string;
    component: null | RTCIceComponent;
    foundation: null | string;
    port: null | number;
    priority: null | number;
    protocol: null | RTCIceProtocol;
    relatedAddress: null | string;
    relatedPort: null | number;
    sdpMid: null | string;
    sdpMLineIndex: null | number;
    tcpType: null | RTCIceTcpCandidateType;
    type: null | RTCIceCandidateType;
    usernameFragment: null | string;
    toJSON(): RTCIceCandidateInit;
}

Properties

address: null | string
candidate: string
component: null | RTCIceComponent
foundation: null | string
port: null | number
priority: null | number
protocol: null | RTCIceProtocol
relatedAddress: null | string
relatedPort: null | number
sdpMid: null | string
sdpMLineIndex: null | number
tcpType: null | RTCIceTcpCandidateType
type: null | RTCIceCandidateType
usernameFragment: null | string

Methods