TimeRanges

sealed external class TimeRanges(source)

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

MDN Reference

Properties

Link copied to clipboard
val length: Int

Returns the number of ranges in the object.

Functions

Link copied to clipboard
fun end(index: Int): Double

Returns the time for the end of the range with the given index.

Link copied to clipboard
fun start(index: Int): Double

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