public class SegmentTimer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TICK |
static int |
INFINITY |
Constructor and Description |
---|
SegmentTimer(VideoPlayerView parent) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
long |
getElapsedTime() |
long |
getRemainingTime() |
boolean |
isRunning() |
protected void |
onFinish() |
protected void |
onTick() |
void |
pause() |
void |
restart(java.lang.String segmentUrl) |
void |
resume() |
void |
start(java.lang.String segmentUrl) |
public static final int INFINITY
public static final int DEFAULT_TICK
public SegmentTimer(VideoPlayerView parent)
public void cancel()
public long getElapsedTime()
public long getRemainingTime()
Timer#DURATION_INFINITY
, then -1 is
returned.public boolean isRunning()
public void pause()
public void restart(java.lang.String segmentUrl)
public void resume()
public void start(java.lang.String segmentUrl)
protected void onFinish()
protected void onTick()