Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>TimeRanges

Deno Standard Extensions
Go to Latest
interface TimeRanges
import { type TimeRanges } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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.

Properties

readonly
length: number

Returns the number of ranges in the object.

Methods

end(index: number): number

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

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

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