Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the

interface TimeRanges {
    length: number;
    end(index): number;
    start(index): number;
}

Properties

Methods

Properties

length: number

Returns the number of ranges in the object.

Methods

  • Returns the time for the end of the range with the given index.

    Throws an "IndexSizeError" DOMException if the index is out of range.

    Parameters

    • index: number

    Returns number

  • Returns the time for the start of the range with the given index.

    Throws an "IndexSizeError" DOMException if the index is out of range.

    Parameters

    • index: number

    Returns number

Generated using TypeDoc