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 enum DecoderDoctorNotificationType {
9 "platform-decoder-not-found",
10 "can-play-but-some-missing-decoders",
11 "cannot-initialize-pulseaudio",
12 "unsupported-libavcodec",
17 enum DecoderDoctorReportType {
20 "mediaplatformdecodernotfound",
21 "mediacannotplaynodecoders",
23 "mediacannotinitializepulseaudio",
24 "mediaunsupportedlibavcodec",
30 dictionary DecoderDoctorNotification {
31 required DecoderDoctorNotificationType type;
32 // True when the issue has been solved.
33 required boolean isSolved;
34 // Key from dom.properties, used for telemetry and prefs.
35 required DOMString decoderDoctorReportId;
36 // If provided, formats (or key systems) at issue.
38 // If provided, technical details about the decode-error/warning.
39 DOMString decodeIssue;
40 // If provided, URL of the document where the issue happened.
42 // If provided, URL of the media resource that caused a decode-error/warning.
43 DOMString resourceURL;