Builder for MediaSeekOptions
.
Public Constructor Summary
Public Method Summary
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.
|
Inherited Method Summary
Public Constructors
public MediaSeekOptions.Builder ()
Public Methods
public MediaSeekOptions build ()
Builds a MediaSeekOptions
object.
public MediaSeekOptions.Builder setCustomData (JSONObject customData)
Sets the custom application-specific data to pass along with the seek request.
public MediaSeekOptions.Builder setIsSeekToInfinite (boolean isSeekToInfinite)
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 getPosition()
will be ignored.
public MediaSeekOptions.Builder setPosition (long position)
Sets the position to seek to, in milliseconds. The default value is
0
.
The position will be ignored if
isSeekToInfinite()
is true
.
public MediaSeekOptions.Builder setResumeState (int resumeState)
Sets 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
.