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;
16 callback WebrtcGlobalStatisticsCallback = undefined (WebrtcGlobalStatisticsReport reports);
17 callback WebrtcGlobalStatisticsHistoryPcIdsCallback = undefined (sequence<DOMString> pcIds);
18 callback WebrtcGlobalStatisticsHistoryCallback = undefined (WebrtcGlobalStatisticsReport reports);
19 callback WebrtcGlobalLoggingCallback = undefined (sequence<DOMString> logMessages);
21 [ChromeOnly, Exposed=Window]
22 namespace WebrtcGlobalInformation {
25 undefined getAllStats(WebrtcGlobalStatisticsCallback callback,
26 optional DOMString pcIdFilter);
29 undefined getStatsHistoryPcIds(WebrtcGlobalStatisticsHistoryPcIdsCallback callback);
32 undefined getStatsHistorySince(WebrtcGlobalStatisticsHistoryCallback callback,
34 optional DOMHighResTimeStamp after,
35 optional DOMHighResTimeStamp sdpAfter);
37 WebrtcGlobalMediaContext getMediaContext();
39 undefined clearAllStats();
42 undefined getLogging(DOMString pattern, WebrtcGlobalLoggingCallback callback);
44 undefined clearLogging();
46 // WebRTC AEC debugging enable
47 attribute boolean aecDebug;
49 readonly attribute DOMString aecDebugLogDir;