W3cubDocs

/Haxe JavaScript

TimeRanges

package js.html

Available on js

The TimeRanges interface is used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the audio and video elements.

Documentation TimeRanges by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

read onlylength:Int

Returns an unsigned long representing the number of time ranges represented by the time range object.

Methods

end(index:Int):Float

Returns the time for the end of the specified range.

Throws:

null

DOMError

start(index:Int):Float

Returns the time for the start of the range with the specified index.

Throws:

null

DOMError

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/TimeRanges.html