as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

TimeRanges

Represents a list of ranges (periods) of time.

For additional information, see https://html.spec.whatwg.org/multipage/media.html#timeranges.

Properties

length

readonly length: number

Returns the number of ranges in the object.

Methods

end()

end(index): number

Returns the position of the end of the range represented by the object as specified by the index parameter. The value is returned as seconds measured from the start of the timeline that the object covers.

For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-timeranges-end.

Parameters

index

number

Returns

number


start()

start(index): number

Returns the position of the start of the range represented by the object as specified by the index parameter. The value is returned as seconds measured from the start of the timeline that the object covers.

For additional information, see https://html.spec.whatwg.org/multipage/media.html#dom-timeranges-start.

Parameters

index

number

Returns

number


Last updated: Oct 02, 2025