Builder for MediaSeekOptions.
|
Builder()
|
| MediaSeekOptions |
build()
Builds a
MediaSeekOptions
object.
|
| MediaSeekOptions.Builder |
setCustomData(JSONObject
customData)
Sets the custom application-specific data to pass along with the seek request.
|
| MediaSeekOptions.Builder |
setIsSeekToInfinite(boolean isSeekToInfinite)
Sets whether to seek to the end of stream or live position.
|
| MediaSeekOptions.Builder |
setPosition(long position)
Sets the position to seek to, in milliseconds.
|
| MediaSeekOptions.Builder |
setResumeState(int resumeState)
Sets the action to take after the seek operation has finished.
|
Builds a MediaSeekOptions
object.
Sets the custom application-specific data to pass along with the seek request.
Sets whether to seek to the end of stream or live position. The default value is
false.
If true, the seek position as specified by MediaSeekOptions.getPosition()
will be ignored.
Sets the position to seek to, in milliseconds. The default value is
0.
The position will be ignored if
MediaSeekOptions.isSeekToInfinite() is true.
Sets the action to take after the seek operation has finished. The default value is
MediaSeekOptions.RESUME_STATE_UNCHANGED.
Valid values are
MediaSeekOptions.RESUME_STATE_UNCHANGED,
MediaSeekOptions.RESUME_STATE_PLAY, and
MediaSeekOptions.RESUME_STATE_PAUSE.