summaryrefslogtreecommitdiffstats
path: root/dom/webidl/RTCIceTransport.webidl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/webidl/RTCIceTransport.webidl
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/webidl/RTCIceTransport.webidl')
-rw-r--r--dom/webidl/RTCIceTransport.webidl43
1 files changed, 43 insertions, 0 deletions
diff --git a/dom/webidl/RTCIceTransport.webidl b/dom/webidl/RTCIceTransport.webidl
new file mode 100644
index 0000000000..35a1c74018
--- /dev/null
+++ b/dom/webidl/RTCIceTransport.webidl
@@ -0,0 +1,43 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* 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"
+};
+
+[Exposed=Window]
+interface RTCIceTransport : EventTarget {
+ // TODO(bug 1307994)
+ // readonly attribute RTCIceRole role;
+ // readonly attribute RTCIceComponent component;
+ readonly attribute RTCIceTransportState state;
+ readonly attribute RTCIceGathererState gatheringState;
+ // TODO(bug 1307994)
+ // sequence<RTCIceCandidate> getLocalCandidates();
+ // sequence<RTCIceCandidate> getRemoteCandidates();
+ // RTCIceCandidatePair? getSelectedCandidatePair();
+ // RTCIceParameters? getLocalParameters();
+ // RTCIceParameters? getRemoteParameters();
+ attribute EventHandler onstatechange;
+ attribute EventHandler ongatheringstatechange;
+ // TODO(bug 1307994)
+ // attribute EventHandler onselectedcandidatepairchange;
+};