candidate = new RTCIceCandidate([candidateInfo]);
- An optional
RTCIceCandidateInitobject providing information about the candidate; if this is provided, the candidate is initialized configured to represent the described candidate.
candidateInfo is provided, the new
initialized as follows:
- Each member of the
RTCIceCandidateInitobject is initialized to the value of the property by the same name from
RTCIceCandidateInit. This includes the
candidatestring (which is SDP text) is parsed; each property found is stored in the corresponding field in the
RTCIceCandidate. If any of the fields is invalid, parsing of the string silently aborts without throwing an exception. The default value of
candidateis the empty string, which indicates that the candidate is an "end-of-candidates" message.
- The following fields are initialized to
nullif they are not included in the
Note: Parsing of the
candidate string is performed
using the candidate-attribute
grammar from the WebRTC Specification.
This constructor does not do complete validation of the specified
candidateInfo object or string.
|WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0)|
BCD tables only load in the browser