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): number;
    start(index: number): number;
}

属性

方法

属性

length: number

Returns the number of ranges in the object.

方法

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

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

    参数

    • index: number

    返回 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.

    参数

    • index: number

    返回 number