WebrtcGlobalInformation.webidl (1810B)
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 */ 6 7 dictionary WebrtcGlobalStatisticsReport { 8 sequence<RTCStatsReportInternal> reports = []; 9 sequence<RTCSdpHistoryInternal> sdpHistories = []; 10 }; 11 12 dictionary WebrtcGlobalMediaContext { 13 required boolean hasH264Hardware; 14 required boolean hasAv1; 15 }; 16 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); 21 22 [ChromeOnly, Exposed=Window] 23 namespace WebrtcGlobalInformation { 24 25 [Throws] 26 undefined getAllStats(WebrtcGlobalStatisticsCallback callback, 27 optional DOMString pcIdFilter); 28 29 [Throws] 30 undefined getStatsHistoryPcIds(WebrtcGlobalStatisticsHistoryPcIdsCallback callback); 31 32 [Throws] 33 undefined getStatsHistorySince(WebrtcGlobalStatisticsHistoryCallback callback, 34 DOMString pcIdFilter, 35 optional DOMHighResTimeStamp after, 36 optional DOMHighResTimeStamp sdpAfter); 37 38 WebrtcGlobalMediaContext getMediaContext(); 39 40 undefined clearAllStats(); 41 42 [Throws] 43 undefined getLogging(DOMString pattern, WebrtcGlobalLoggingCallback callback); 44 45 undefined clearLogging(); 46 47 // WebRTC AEC debugging enable 48 attribute boolean aecDebug; 49 50 readonly attribute DOMString aecDebugLogDir; 51 };