1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

LibWeb: Implement the MediaError IDL interface

This commit is contained in:
Timothy Flynn 2023-04-22 14:39:20 -04:00 committed by Andreas Kling
parent 22572c39e0
commit 73a80b7047
6 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,11 @@
// https://html.spec.whatwg.org/multipage/media.html#mediaerror
[Exposed=Window]
interface MediaError {
const unsigned short MEDIA_ERR_ABORTED = 1;
const unsigned short MEDIA_ERR_NETWORK = 2;
const unsigned short MEDIA_ERR_DECODE = 3;
const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
readonly attribute unsigned short code;
readonly attribute DOMString message;
};