The nsIDOMHTMLTimeRanges interface represents a set of time ranges in media; it's primarily used by the nsIDOMHTMLMediaElement interface, and implements the DOM TimeRanges interface.
Each time range represented by an nsIDOMHTMLTimeRanges object has an index number; you call the start() and end() methods to obtain the start and end times of each range, specifying the index number of the range to look up.
Inherits from: nsISupports
float start(in unsigned long index); |
float end(in unsigned long index); |
| Attribute | Type | Description |
length | unsigned long | The number of ranges represented by the nsIDOMHTMLTimeRanges object. Read only. |
Returns the time offset to the end of the specified time range.
float end( in unsigned long index );
indexThe time at which the specified range ends, in seconds measured from the beginning of the timeline represented by the object.
INDEX_SIZE_ERRindex is not valid.Returns the time offset to the start of the specified time range.
float start( in unsigned long index );
indexThe time at which the specified range starts, in seconds measured from the beginning of the timeline represented by the object.
INDEX_SIZE_ERRindex is not valid.