2018-09-13 22:30:51 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
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 22:30:45 +03:00
|
|
|
"password",
|
|
|
|
"token"
|
2016-02-25 08:24:16 +03:00
|
|
|
};
|
|
|
|
|
2013-02-13 23:26:30 +04:00
|
|
|
dictionary RTCIceServer {
|
2018-09-13 22:30:45 +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 22:30:45 +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 22:30:45 +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 {
|
2018-09-13 22:30:45 +03:00
|
|
|
sequence<RTCIceServer> iceServers;
|
|
|
|
RTCIceTransportPolicy iceTransportPolicy = "all";
|
|
|
|
RTCBundlePolicy bundlePolicy = "balanced";
|
|
|
|
DOMString? peerIdentity = null;
|
|
|
|
sequence<RTCCertificate> certificates;
|
2013-02-13 23:26:30 +04:00
|
|
|
};
|