TimeRanges

@native @JSGlobal @JSType
class TimeRanges extends Object

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.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def end(index: Int): Double

Returns the time offset at which a specified time range ends.

Returns the time offset at which a specified time range ends.

def length: Int

Returns the number of ranges in the object.

Returns the number of ranges in the object.

def start(index: Int): Double

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

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

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object