Used to store the errors from media resources.
Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
TimeRanges Constructor() : TimeRanges
Error for time ranges.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no | ||
TimeRanges() : TimeRangesError for time ranges. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
length
: Number
The number of ranges represented by the object.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||
|---|---|---|---|---|---|---|---|---|---|---|
|
start(Number index) :
void
Returns the position of the start of the indexth range represented by the object, in seconds measured from the start of the
timeline that the object covers.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no | |||
|
Parameters
|
||||||||||
|
end(Number index) :
void
Returns the position of the end of the indexth range represented by the object, in seconds measured from the start of the
timeline that the object covers.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no | |||
|
Parameters
|
||||||||||
References
Availability
JavaScript 1.2|WhatWG