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
Microsoft Developer Network: Windows Internet Explorer API reference Article