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.

interface SourceBuffer {
    appendWindowEnd: number;
    appendWindowStart: number;
    buffered: TimeRanges;
    mode: AppendMode;
    onabort: ((this, ev) => any);
    onerror: ((this, ev) => any);
    onupdate: ((this, ev) => any);
    onupdateend: ((this, ev) => any);
    onupdatestart: ((this, ev) => any);
    timestampOffset: number;
    updating: boolean;
    abort(): void;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    appendBuffer(data): void;
    changeType(type): void;
    dispatchEvent(event): boolean;
    remove(start, end): void;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
}

Hierarchy

  • EventTarget
    • SourceBuffer

Properties

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

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

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

Type declaration

    • (this, ev): any
    • Parameters

      Returns any

timestampOffset: number
updating: boolean

Methods

  • Returns void

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    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

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc