W3cubDocs

/Haxe JavaScript

TimeRanges

package js.html

@:native("TimeRanges") 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:

Variables

read only length:Int

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

Methods

end (index:Int):Float

Throws:

null DOMError

start (index:Int):Float

Throws:

null DOMError

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