This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

TimeRanges

Summary

A TimeRanges object represents the collection of ranges (time periods) from the media resource that have been buffered or played. Ranges in a TimeRanges collection are sequential and not empty. Adjacent ranges are combined together to create longer ones.

Properties

length
Returns the number of ranges in the object.

Methods

end
Returns the time for the end of the range with the given index. Throws an IndexSizeError if the index is out of range.
start
Returns the time for the start of the range with the given index. Throws an IndexSizeError if the index is out of range.

Events

No events.

Related specifications

W3C HTML5 Specification
W3C Editor’s Draft

Attributions