public final class StandaloneMediaClock extends Object implements MediaClock
MediaClock
. The clock can be started, stopped and its time can be set and
retrieved. When started, this clock is based on SystemClock.elapsedRealtime()
.Constructor and Description |
---|
StandaloneMediaClock() |
Modifier and Type | Method and Description |
---|---|
long |
getPositionUs()
Returns the current media position in microseconds.
|
void |
setPositionUs(long timeUs) |
void |
start()
Starts the clock.
|
void |
stop()
Stops the clock.
|
public void start()
public void stop()
public void setPositionUs(long timeUs)
timeUs
- The position to set in microseconds.public long getPositionUs()
MediaClock
getPositionUs
in interface MediaClock