2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-02-13 23:26:30 +04:00
|
|
|
/* 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/.
|
2013-05-08 04:55:21 +04:00
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCConfiguration
|
2013-02-13 23:26:30 +04:00
|
|
|
*/
|
|
|
|
|
2016-02-25 08:24:16 +03:00
|
|
|
enum RTCIceCredentialType {
|
2018-09-13 23:04:55 +03:00
|
|
|
"password",
|
2016-02-25 08:24:16 +03:00
|
|
|
};
|
|
|
|
|
2013-02-13 23:26:30 +04:00
|
|
|
dictionary RTCIceServer {
|
2018-09-13 23:04:55 +03:00
|
|
|
(DOMString or sequence<DOMString>) urls;
|
|
|
|
DOMString url; //deprecated
|
|
|
|
DOMString username;
|
|
|
|
DOMString credential;
|
|
|
|
RTCIceCredentialType credentialType = "password";
|
2013-02-13 23:26:30 +04:00
|
|
|
};
|
|
|
|
|
2015-07-30 17:11:52 +03:00
|
|
|
enum RTCIceTransportPolicy {
|
2018-09-13 23:04:55 +03:00
|
|
|
"relay",
|
|
|
|
"all"
|
2015-07-30 17:11:52 +03:00
|
|
|
};
|
|
|
|
|
2015-06-13 00:27:08 +03:00
|
|
|
enum RTCBundlePolicy {
|
2018-09-13 23:04:55 +03:00
|
|
|
"balanced",
|
|
|
|
"max-compat",
|
|
|
|
"max-bundle"
|
2015-06-13 00:27:08 +03:00
|
|
|
};
|
|
|
|
|
2013-02-13 23:26:30 +04:00
|
|
|
dictionary RTCConfiguration {
|
2022-02-09 02:37:55 +03:00
|
|
|
sequence<RTCIceServer> iceServers = [];
|
2018-09-13 23:04:55 +03:00
|
|
|
RTCIceTransportPolicy iceTransportPolicy = "all";
|
|
|
|
RTCBundlePolicy bundlePolicy = "balanced";
|
|
|
|
DOMString? peerIdentity = null;
|
2022-02-09 02:37:55 +03:00
|
|
|
sequence<RTCCertificate> certificates = [];
|
2020-04-23 02:15:25 +03:00
|
|
|
|
|
|
|
// Non-standard. Only here to be able to detect and warn in web console.
|
|
|
|
// Uses DOMString over enum as a trade-off between type errors and safety.
|
|
|
|
// TODO: Remove once sdpSemantics usage drops to zero (bug 1632243).
|
|
|
|
DOMString sdpSemantics;
|
2013-02-13 23:26:30 +04:00
|
|
|
};
|