public final class

TimeRanges

extends JavaScriptObject
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.media.dom.client.TimeRanges

Class Overview

A JavaScriptObject representing a time range returned from a MediaElement.

Experimental API: This API is still under development and is subject to change.

Summary

Protected Constructors
TimeRanges()
Public Methods
double end(int index)
Returns the end time of the range indexed by index.
int length()
Returns the number of distinct ranges contained in this object.
double start(int index)
Returns the start time of the range indexed by index.
[Expand]
Inherited Methods
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object

Protected Constructors

protected TimeRanges ()

Public Methods

public double end (int index)

Returns the end time of the range indexed by index.

Parameters
index the range index, between 0 (inclusive) and length() (exclusive)
Returns
  • a double indicating the end time in seconds
See Also

public int length ()

Returns the number of distinct ranges contained in this object.

Returns
  • an integer number of ranges

public double start (int index)

Returns the start time of the range indexed by index.

Parameters
index the range index, between 0 (inclusive) and length() (exclusive)
Returns
  • a double indicating the start time in seconds
See Also