The class for specifying options for seek requests.
Nested Class Summary
class | MediaSeekOptions.Builder | Builder for MediaSeekOptions . |
|
@interface | MediaSeekOptions.ResumeState | The resume state. |
Constant Summary
int | RESUME_STATE_PAUSE | A resume state indicating that the player should be paused, regardless of its current state. |
int | RESUME_STATE_PLAY | A resume state indicating that the player should be playing, regardless of its current state. |
int | RESUME_STATE_UNCHANGED | A resume state indicating that the player state should be left unchanged. |
Public Method Summary
boolean | |
JSONObject |
getCustomData()
Returns the custom application-specific data to pass along with the seek
request.
|
long |
getPosition()
Returns the position to seek to, in milliseconds.
|
int |
getResumeState()
Returns the action to take after the seek operation has finished.
|
int |
hashCode()
|
boolean |
isSeekToInfinite()
Returns whether to seek to the end of stream or live position.
|
Inherited Method Summary
Constants
public static final int RESUME_STATE_PAUSE
A resume state indicating that the player should be paused, regardless of its current state.
public static final int RESUME_STATE_PLAY
A resume state indicating that the player should be playing, regardless of its current state.
public static final int RESUME_STATE_UNCHANGED
A resume state indicating that the player state should be left unchanged.
Public Methods
public boolean equals (Object other)
public JSONObject getCustomData ()
Returns the custom application-specific data to pass along with the seek request.
public long getPosition ()
Returns the position to seek to, in milliseconds. The default value is
0
.
The position will be ignored if
isSeekToInfinite()
is true
.
public int getResumeState ()
Returns the action to take after the seek operation has finished. The default value
is
RESUME_STATE_UNCHANGED
.
Valid values are
RESUME_STATE_UNCHANGED
,
RESUME_STATE_PLAY
, and
RESUME_STATE_PAUSE
.
public int hashCode ()
public boolean isSeekToInfinite ()
Returns whether to seek to the end of stream or live position. The default value is
false
.
If true
, the seek position as specified by getPosition()
will be ignored.