TimeRanges
Objects implementing the TimeRanges interface represent a list of
ranges (periods) of time.
When a TimeRanges object is said to be a normalized TimeRanges
object, the ranges it represents must obey the following criteria:
The start of a range must be greater than the end of all earlier ranges.
The start of a range must be less than the end of that same range.
In other words, the ranges in such an object are ordered, don't
overlap, aren't empty, and don't touch (adjacent ranges are folded
into one bigger range).
Supported Platform(s)
- BlackBerry OS 6.0+
- BlackBerry PlayBook
Configuration Document Settings
To use all of the API described for this object, you must ensure the following settings are in your configuration document:
This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application.Permission Elements (PlayBook Only) |
---|
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
end
void end(index : Number) |
Supported Platform(s)
- BlackBerry OS 6.0+- BlackBerry PlayBook
Description
Returns the time for the end of the range with the given ind
Parameter | Type | Description |
---|---|---|
index | Number |
start
void start(index : Number) |
Supported Platform(s)
- BlackBerry OS 6.0+- BlackBerry PlayBook
Description
Returns the time for the start of the range with the given index.
Parameter | Type | Description |
---|---|---|
index | Number |
Properties:
Property | Type | Description | Supported Platform(s) |
---|---|---|---|
length |
Number
readonly |
Returns a MediaError object representing the current error state of the element.
Returns null if there is no error.
|
- BlackBerry OS 6.0+
- BlackBerry PlayBook |