Search


Search something to see results

TimeRanges

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

MDN Reference

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

Index

Properties

Methods

Properties

length: number

Returns the number of ranges in the object.

MDN Reference

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.

MDN Reference

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.

MDN Reference

Parameters

  • index: number

Returns number