Interface TimeRanges
-
- All Implemented Interfaces:
-
java.lang.Iterable
public interface TimeRanges implements Iterable<T>
The TimeRanges API which can be used to get information regarding multiple periods in the playback.
-
-
Method Summary
-
-
Method Detail
-
getStart
abstract double getStart(int index)
The start time of a certain TimeRange.
- Parameters:
index
- The position of the TimeRange in the list of TimeRanges.- Returns:
The start time of the TimeRange at position 'index', in seconds.
-
getEnd
abstract double getEnd(int index)
The end time of a certain TimeRange.
- Parameters:
index
- The position of the TimeRange in the list of TimeRanges.- Returns:
The end time of the TimeRange at position 'index', in seconds.
-
length
abstract int length()
The total number of TimeRanges.
- Returns:
The number of TimeRanges.
-
-
-
-