Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ogone/src/ogone.dom.d.ts>SourceBuffer

Advanced Web Composition for Future
Latest
interface SourceBuffer
implements EventTarget
import { type SourceBuffer } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.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

appendWindowEnd: number
appendWindowStart: number
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
timestampOffset: number
readonly
updating: boolean

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