/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. * * The origin of this IDL file is * https://w3c.github.io/webrtc-pc/#dom-rtcicetransport */ enum RTCIceTransportState { "closed", "failed", "disconnected", "new", "checking", "completed", "connected" }; enum RTCIceGathererState { "new", "gathering", "complete" }; enum RTCIceRole { "controlling", "controlled", "unknown" }; [Exposed=Window] interface RTCIceTransport : EventTarget { readonly attribute RTCIceRole role; // readonly attribute RTCIceComponent component; readonly attribute RTCIceTransportState state; readonly attribute RTCIceGathererState gatheringState; // TODO(bug 1307994) // sequence getLocalCandidates(); // sequence getRemoteCandidates(); RTCIceCandidatePair? getSelectedCandidatePair(); // RTCIceParameters? getLocalParameters(); // RTCIceParameters? getRemoteParameters(); attribute EventHandler onstatechange; attribute EventHandler ongatheringstatechange; attribute EventHandler onselectedcandidatepairchange; };