Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SourceBuffer

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.

Hierarchy

Index

Properties

EventTarget

EventTarget: { constructor: any; prototype: EventTarget }

Type declaration

appendWindowEnd

appendWindowEnd: number

appendWindowStart

appendWindowStart: number

Readonly buffered

buffered: TimeRanges

mode

onabort

onabort: ((this: SourceBuffer, ev: Event) => any) | null

onerror

onerror: ((this: SourceBuffer, ev: Event) => any) | null

onupdate

onupdate: ((this: SourceBuffer, ev: Event) => any) | null

onupdateend

onupdateend: ((this: SourceBuffer, ev: Event) => any) | null

onupdatestart

onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null

timestampOffset

timestampOffset: number

Readonly updating

updating: boolean

Methods

abort

  • abort(): void
  • Returns void

addEventListener

appendBuffer

  • Parameters

    Returns void

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

remove

  • remove(start: number, end: number): void
  • Parameters

    • start: number
    • end: number

    Returns void

removeEventListener

Generated using TypeDoc