Files
ladybird/Libraries/LibWeb/MediaSourceExtensions/MediaSource.idl
Shannon Booth cc6e048bd6 LibWeb+LibIDL: Remove support for #import directives during parsing
These no longer serve any purpose now that we run the IDLGenerator
on all of these files at once.
2026-04-24 20:08:29 +02:00

39 lines
1.2 KiB
Plaintext

// https://w3c.github.io/media-source/#dom-mediasource
enum ReadyState {
"closed",
"open",
"ended",
};
// https://w3c.github.io/media-source/#dom-mediasource
enum EndOfStreamError {
"network",
"decode",
};
// https://w3c.github.io/media-source/#dom-mediasource
[Exposed=(Window,DedicatedWorker), Experimental]
interface MediaSource : EventTarget {
constructor();
[FIXME, SameObject, Exposed=DedicatedWorker]
readonly attribute MediaSourceHandle handle;
readonly attribute SourceBufferList sourceBuffers;
readonly attribute SourceBufferList activeSourceBuffers;
readonly attribute ReadyState readyState;
attribute unrestricted double duration;
attribute EventHandler onsourceopen;
attribute EventHandler onsourceended;
attribute EventHandler onsourceclose;
static readonly attribute boolean canConstructInDedicatedWorker;
SourceBuffer addSourceBuffer(DOMString type);
[FIXME] undefined removeSourceBuffer(SourceBuffer sourceBuffer);
undefined endOfStream(optional EndOfStreamError error);
[FIXME] undefined setLiveSeekableRange(double start, double end);
[FIXME] undefined clearLiveSeekableRange();
static boolean isTypeSupported(DOMString type);
};