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/.
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 {
26 undefined getAllStats(WebrtcGlobalStatisticsCallback callback,
27 optional DOMString pcIdFilter);
30 undefined getStatsHistoryPcIds(WebrtcGlobalStatisticsHistoryPcIdsCallback callback);
33 undefined getStatsHistorySince(WebrtcGlobalStatisticsHistoryCallback callback,
35 optional DOMHighResTimeStamp after,
36 optional DOMHighResTimeStamp sdpAfter);
38 WebrtcGlobalMediaContext getMediaContext();
40 undefined clearAllStats();
43 undefined getLogging(DOMString pattern, WebrtcGlobalLoggingCallback callback);
45 undefined clearLogging();
47 // WebRTC AEC debugging enable
48 attribute boolean aecDebug;
50 readonly attribute DOMString aecDebugLogDir;