Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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 and  elements.

interface TimeRanges {
readonly length: number;
end(index: number): number;
start(index: number): number;
}
var TimeRanges: {
prototype: TimeRanges;
new (): TimeRanges;
}
;

§Properties

§
readonly length: number
[src]

Returns the number of ranges in the object.

§Methods

§
end(index: number): number
[src]

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

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

§
start(index: number): number
[src]

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

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