Bug 1945643 - Update to mozilla-nimbus-schemas 2025.1.1 r=chumphreys
[gecko.git] / dom / chrome-webidl / WebrtcGlobalInformation.webidl
blob63d7a8237c8e0f9e403a6fe73a5af5dc8b640711
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  */
7 dictionary WebrtcGlobalStatisticsReport {
8   sequence<RTCStatsReportInternal> reports = [];
9   sequence<RTCSdpHistoryInternal> sdpHistories = [];
12 dictionary WebrtcGlobalMediaContext {
13   required boolean hasH264Hardware;
14   required boolean hasAv1;
17 callback WebrtcGlobalStatisticsCallback = undefined (WebrtcGlobalStatisticsReport reports);
18 callback WebrtcGlobalStatisticsHistoryPcIdsCallback = undefined (sequence<DOMString> pcIds);
19 callback WebrtcGlobalStatisticsHistoryCallback = undefined (WebrtcGlobalStatisticsReport reports);
20 callback WebrtcGlobalLoggingCallback = undefined (sequence<DOMString> logMessages);
22 [ChromeOnly, Exposed=Window]
23 namespace WebrtcGlobalInformation {
25   [Throws]
26   undefined getAllStats(WebrtcGlobalStatisticsCallback callback,
27                         optional DOMString pcIdFilter);
29   [Throws]
30   undefined getStatsHistoryPcIds(WebrtcGlobalStatisticsHistoryPcIdsCallback callback);
32   [Throws]
33   undefined getStatsHistorySince(WebrtcGlobalStatisticsHistoryCallback callback,
34                                  DOMString pcIdFilter,
35                                  optional DOMHighResTimeStamp after,
36                                  optional DOMHighResTimeStamp sdpAfter);
38   WebrtcGlobalMediaContext getMediaContext();
40   undefined clearAllStats();
42   [Throws]
43   undefined getLogging(DOMString pattern, WebrtcGlobalLoggingCallback callback);
45   undefined clearLogging();
47   // WebRTC AEC debugging enable
48   attribute boolean aecDebug;
50   readonly attribute DOMString aecDebugLogDir;