Skip to main content
Module

x/evt/mod.ts>dom.SourceBufferList

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.SourceBufferList
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.13/mod.ts";
const { SourceBufferList } = dom;

A simple container list for multiple SourceBuffer objects.

Properties

readonly
length: number
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null

Methods

addEventListener<K extends keyof SourceBufferListEventMap>(
type: K,
listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof SourceBufferListEventMap>(
type: K,
listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void