Skip to main content
Module

x/commandis/mod.ts>dom.SourceBuffer

Official framework for Corddis lib ( for Deno only )
Latest
interface dom.SourceBuffer
implements EventTarget
import { type dom } from "https://deno.land/x/commandis@v0.6.5/mod.ts";
const { SourceBuffer } = dom;

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

appendWindowEnd: number
appendWindowStart: number
readonly
audioTracks: AudioTrackList
readonly
buffered: TimeRanges
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: TextTrackList
timestampOffset: number
readonly
updating: boolean
readonly
videoTracks: VideoTrackList

Methods

abort(): void
appendBuffer(data: BufferSource): void
remove(start: number, end: number): void
addEventListener<K extends keyof SourceBufferEventMap>(
type: K,
listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof SourceBufferEventMap>(
type: K,
listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void