Builder forMediaSeekOptions
.
Public Constructor Summary
Builder()
|
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
publicBuilder()
Public Methods
publicMediaSeekOptions build()
Builds aMediaSeekOptions
object.
publicMediaSeekOptions.Builder setCustomData(JSONObject customData)
Sets the custom application-specific data to pass along with the seek request.
publicMediaSeekOptions.Builder setIsSeekToInfinite(boolean isSeekToInfinite)
Sets whether to seek to the end of stream or live position. The default value is
false
.
Iftrue
,the seek position as specified byMediaSeekOptions.getPosition()
will be ignored.
publicMediaSeekOptions.Builder setPosition(long position)
Sets the position to seek to, in milliseconds. The default value is
0
.
The position will be ignored if
MediaSeekOptions.isSeekToInfinite()
istrue
.
publicMediaSeekOptions.Builder setResumeState(int resumeState)
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
.