Skip to main content
Module

x/evt/lib/types/lib.dom.ts>SourceBufferList

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

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