TimeRange.DynamicTimeRange, TimeRange.StaticTimeRange| Constructor and Description |
|---|
DynamicTimeRange(long minStartTimeUs,
long maxEndTimeUs,
long elapsedRealtimeAtStartUs,
long bufferDepthUs,
Clock systemClock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long[] |
getCurrentBoundsMs(long[] out)
Returns the start and end times (in milliseconds) of the TimeRange in the provided array,
or creates a new one.
|
long[] |
getCurrentBoundsUs(long[] out)
Returns the start and end times (in microseconds) of the TimeRange in the provided array,
or creates a new one.
|
int |
hashCode() |
boolean |
isStatic()
Whether the range is static, meaning repeated calls to
TimeRange.getCurrentBoundsMs(long[])
or TimeRange.getCurrentBoundsUs(long[]) will return identical results. |
public DynamicTimeRange(long minStartTimeUs,
long maxEndTimeUs,
long elapsedRealtimeAtStartUs,
long bufferDepthUs,
Clock systemClock)
minStartTimeUs - A lower bound on the beginning of the range.maxEndTimeUs - An upper bound on the end of the range.elapsedRealtimeAtStartUs - The value of SystemClock.elapsedRealtime(),
multiplied by 1000, corresponding to a media time of zero.bufferDepthUs - The buffer depth of the media, or -1.systemClock - A system clock.public boolean isStatic()
TimeRangeTimeRange.getCurrentBoundsMs(long[])
or TimeRange.getCurrentBoundsUs(long[]) will return identical results.public long[] getCurrentBoundsMs(long[] out)
TimeRangegetCurrentBoundsMs in interface TimeRangeout - An array to store the start and end times; can be null.public long[] getCurrentBoundsUs(long[] out)
TimeRangegetCurrentBoundsUs in interface TimeRangeout - An array to store the start and end times; can be null.