nsIDOMHTMLTimeRanges 编辑
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.
dom/interfaces/html/nsIDOMHTMLTimeRanges.idl
Scriptable Please add a summary to this article. Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)Inherits from: nsISupports
Method overview
float start(in unsigned long index); |
float end(in unsigned long index); |
Attributes
Attribute | Type | Description |
length | unsigned long | The number of ranges represented by the nsIDOMHTMLTimeRanges object. Read only. |
Methods
end()
Returns the time offset to the end of the specified time range.
float end( in unsigned long index );
Parameters
index
- The index to the time range whose end time is to be returned.
Return value
The time at which the specified range ends, in seconds measured from the beginning of the timeline represented by the object.
Exceptions thrown
INDEX_SIZE_ERR
- The specified
index
is not valid.
start()
Returns the time offset to the start of the specified time range.
float start( in unsigned long index );
Parameters
index
- The index to the time range whose start time is to be returned.
Return value
The time at which the specified range starts, in seconds measured from the beginning of the timeline represented by the object.
Exceptions thrown
INDEX_SIZE_ERR
- The specified
index
is not valid.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论