TimeRanges

open class TimeRanges(source)

When loading a media resource for use by an

MDN Reference

Properties

Link copied to clipboard
val length: Int

The TimeRanges.length read-only property returns the number of ranges in the object.

Functions

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

The end() method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range ends.

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

The start() method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range begins.