Definition
WebRTC: Real-Time Communication in Browsers defines RTCIceTransport
[Exposed=Window]
interface RTCIceTransport : EventTarget {
readonly attribute RTCIceRole role;
readonly attribute RTCIceComponent component;
readonly attribute RTCIceTransportState state;
readonly attribute RTCIceGathererState gatheringState;
sequence<RTCIceCandidate> getLocalCandidates();
sequence<RTCIceCandidate> getRemoteCandidates();
RTCIceCandidatePair? getSelectedCandidatePair();
RTCIceParameters? getLocalParameters();
RTCIceParameters? getRemoteParameters();
attribute EventHandler onstatechange;
attribute EventHandler ongatheringstatechange;
attribute EventHandler onselectedcandidatepairchange;
};
This interface is extended in the following specifications:
- IceTransport Extensions for WebRTC
[Exposed=Window] partial interface RTCIceTransport { constructor(); undefined gather (optional RTCIceGatherOptions options = {}); undefined start (optional RTCIceParameters remoteParameters = {}, optional RTCIceRole role = "controlled"); undefined stop (); undefined addRemoteCandidate (optional RTCIceCandidateInit remoteCandidate = {}); attribute EventHandler onerror; attribute EventHandler onicecandidate; };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface RTCIceTransport : EventTarget {
readonly attribute RTCIceRole role;
readonly attribute RTCIceComponent component;
readonly attribute RTCIceTransportState state;
readonly attribute RTCIceGathererState gatheringState;
sequence<RTCIceCandidate> getLocalCandidates();
sequence<RTCIceCandidate> getRemoteCandidates();
RTCIceCandidatePair? getSelectedCandidatePair();
RTCIceParameters? getLocalParameters();
RTCIceParameters? getRemoteParameters();
attribute EventHandler onstatechange;
attribute EventHandler ongatheringstatechange;
attribute EventHandler onselectedcandidatepairchange;
constructor();
undefined gather (optional RTCIceGatherOptions options = {});
undefined start (optional RTCIceParameters remoteParameters = {}, optional RTCIceRole role = "controlled");
undefined stop ();
undefined addRemoteCandidate (optional RTCIceCandidateInit remoteCandidate = {});
attribute EventHandler onerror;
attribute EventHandler onicecandidate;
};
Methods and attributes that return objects implementing RTCIceTransport
Referring IDL interfaces/dictionaries
Referring specifications
- IceTransport Extensions for WebRTC refers to
RTCIceTransport