The class for specifying options for seek requests.
| class | MediaSeekOptions.Builder | Builder for MediaSeekOptions. |
|
| @interface | MediaSeekOptions.ResumeState | The resume state. | |
| 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. |
| 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.
|
A resume state indicating that the player should be paused, regardless of its current state.
A resume state indicating that the player should be playing, regardless of its current state.
A resume state indicating that the player state should be left unchanged.
Returns the custom application-specific data to pass along with the seek request.
Returns the position to seek to, in milliseconds. The default value is
0.
The position will be ignored if
isSeekToInfinite() is true.
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.
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.