Skip to main content
Version: 20 Mar 2024

IceCandidate

Class that represents an ice candidate used by the MLWebRTC API.

Public Fields

Candidate

Gets the candidate id.


public string Candidate { get; set; }


SdpMLineIndex

Gets the index that indicates which media source is associated with the candidate.


public int SdpMLineIndex { get; set; }


SdpMid

Gets the id of the source media component from which the candidate draws data.


public string SdpMid { get; set; }


Public Methods

IceCandidate Create

Factory method used to create a new IceCandidate object.

public static IceCandidate Create(
string candidate ="",
string sdpMid ="",
int sdpMLineIndex =0
)

Parameters

TypeNameDescription
stringcandidateThe candidate id.
stringsdpMidThe id of the source media component from which the candidate draws data.
intsdpMLineIndexIndex that indicates which media source is associated with a candidate.

Returns: An ice candidate object with the given handle.