Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.8/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