TimeRanges extension type

When loading a media resource for use by an audio or video element, the TimeRanges interface is used for representing the time ranges of the media resource that have been buffered, the time ranges that have been played, and the time ranges that are seekable.

A TimeRanges object includes one or more ranges of time, each specified by a starting time offset and an ending time offset. You reference each time range by using the start() and end() methods, passing the index number of the time range you want to retrieve.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
The TimeRanges.length read-only property returns the number of ranges in the object.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

end(int index) double
The end() method of the TimeRanges interface returns the time offset at which a specified time range ends.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start(int index) double
The start() method of the TimeRanges interface returns the time offset at which a specified time range begins.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited