Partager via


addRemoteCandidate method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Add a remote candidate associated with the remote RTCIceTransport. If state is "closed", throw an InvalidStateError exception.

Syntax

var retval = RTCIceTransport.addRemoteCandidate(remoteCandidate);

Parameters

  • remoteCandidate [optional]
    Type: RTCIceGatherCandidate

    Nullable

Return value

This method does not return a value.

Standards information

Remarks

When the remote RTCIceGathereremits its final candidate, addRemoteCandidate() should be called with an RTCIceCandidateComplete dictionary as an argument, so that the local RTCIceTransport can know there are no more remote candidates expected, and can enter the "completed" state.

See also

RTCIceTransport