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

  • EventTarget
    • SourceBuffer

Properties

appendWindowEnd: number
appendWindowStart: number
buffered: TimeRanges
onabort: ((this: SourceBuffer, ev: Event) => any)

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

timestampOffset: number
updating: boolean

Methods

  • Returns void

  • Parameters

    Returns void

  • Parameters

    • type: string

    Returns void

  • 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

    • event: Event

    Returns boolean

  • Parameters

    • start: number
    • end: number

    Returns void