interface dom.MediaSource
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.5.2/mod.ts";
const { MediaSource } = dom;
This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent.
Properties
Methods
addEventListener<K extends keyof MediaSourceEventMap>(): void
type: K,
listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof MediaSourceEventMap>(): void
type: K,
listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any,
options?: boolean | EventListenerOptions,