Chartbreaker
    Preparing search index...

    Interface SourceBufferList

    The SourceBufferList interface represents a simple container list for multiple SourceBuffer objects.

    MDN Reference

    interface SourceBufferList {
        length: number;
        onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
        onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
        "[iterator]"(): ArrayIterator<SourceBuffer>;
        addEventListener<K extends keyof SourceBufferListEventMap>(
            type: K,
            listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any,
            options?: boolean | AddEventListenerOptions,
        ): void;
        addEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        dispatchEvent(event: Event): boolean;
        removeEventListener<K extends keyof SourceBufferListEventMap>(
            type: K,
            listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any,
            options?: boolean | EventListenerOptions,
        ): void;
        removeEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
        [index: number]: SourceBuffer;
    }

    Hierarchy (View Summary)

    Indexable

    Index

    Properties

    length: number

    The length read-only property of the SourceBufferList interface returns the number of SourceBuffer objects in the list.

    MDN Reference

    onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null
    onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null

    Methods

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().

      MDN Reference

      Parameters

      Returns boolean