Page Summary
-
The
MediaSeekOptions.Builderclass is used to buildMediaSeekOptionsobjects. -
You can set custom data, specify seeking to the end of a stream, set a specific seek position in milliseconds, and determine the resume state after seeking.
-
The
build()method creates the finalMediaSeekOptionsobject.
Builder for MediaSeekOptions
.
Public Constructor Summary
Public Method Summary
| MediaSeekOptions | |
| 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 | |
| MediaSeekOptions.Builder |
Inherited Method Summary
Public Constructors
public 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 MediaSeekOptions.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 MediaSeekOptions.isSeekToInfinite()
is true
.
public MediaSeekOptions.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
.

