interface SourceBuffer
implements EventTarget
import { type SourceBuffer } from "https://deno.land/x/evt@v2.5.6/lib/types/lib.dom.ts";
A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object. This can be made up of one or several media segments.
Properties
readonly
audioTracks: AudioTrackListreadonly
buffered: TimeRangesmode: AppendMode
onabort: ((this: SourceBuffer, ev: Event) => any) | null
onerror: ((this: SourceBuffer, ev: Event) => any) | null
onupdate: ((this: SourceBuffer, ev: Event) => any) | null
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null
readonly
textTracks: TextTrackListreadonly
videoTracks: VideoTrackListMethods
appendBuffer(data: BufferSource): void
addEventListener<K extends keyof SourceBufferEventMap>(): void
type: K,
listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof SourceBufferEventMap>(): void
type: K,
listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any,
options?: boolean | EventListenerOptions,