RTCIceTransport.webidl (1303B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 * 6 * The origin of this IDL file is 7 * https://w3c.github.io/webrtc-pc/#dom-rtcicetransport 8 */ 9 10 enum RTCIceTransportState { 11 "closed", 12 "failed", 13 "disconnected", 14 "new", 15 "checking", 16 "completed", 17 "connected" 18 }; 19 20 enum RTCIceGathererState { 21 "new", 22 "gathering", 23 "complete" 24 }; 25 26 [Exposed=Window] 27 interface RTCIceTransport : EventTarget { 28 // TODO(bug 1307994) 29 // readonly attribute RTCIceRole role; 30 // readonly attribute RTCIceComponent component; 31 readonly attribute RTCIceTransportState state; 32 readonly attribute RTCIceGathererState gatheringState; 33 // TODO(bug 1307994) 34 // sequence<RTCIceCandidate> getLocalCandidates(); 35 // sequence<RTCIceCandidate> getRemoteCandidates(); 36 // RTCIceCandidatePair? getSelectedCandidatePair(); 37 // RTCIceParameters? getLocalParameters(); 38 // RTCIceParameters? getRemoteParameters(); 39 attribute EventHandler onstatechange; 40 attribute EventHandler ongatheringstatechange; 41 // TODO(bug 1307994) 42 // attribute EventHandler onselectedcandidatepairchange; 43 };