getLocalCandidates method

JSArray<RTCIceCandidate> getLocalCandidates()

The getLocalCandidates() method of the RTCIceTransport interface returns an array of RTCIceCandidate objects, one for each of the candidates that have been gathered by the local device during the current agent session.

The local candidates are placed in this list by the ICE agent prior to being delivered to the local client's code in an RTCPeerConnection.icecandidate_event event so that the client can forward the candidates to the remote peer.

Implementation

external JSArray<RTCIceCandidate> getLocalCandidates();