Package com.google.gwt.media.dom.client
Class TimeRanges
- java.lang.Object
-
- com.google.gwt.core.client.JavaScriptObject
-
- com.google.gwt.media.dom.client.TimeRanges
-
public final class TimeRanges extends JavaScriptObject
A
JavaScriptObjectrepresenting a time range returned from aMediaElement.Experimental API: This API is still under development and is subject to change.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTimeRanges()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleend(int index)Returns the end time of the range indexed byindex.intlength()Returns the number of distinct ranges contained in this object.doublestart(int index)Returns the start time of the range indexed byindex.-
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
-
-
-
Method Detail
-
end
public double end(int index)
Returns the end time of the range indexed byindex.- Parameters:
index- the range index, between 0 (inclusive) andlength()(exclusive)- Returns:
- a double indicating the end time in seconds
- See Also:
start(int)
-
length
public int length()
Returns the number of distinct ranges contained in this object.- Returns:
- an integer number of ranges
-
-