MediaSeekOptions.Builder

public static class MediaSeekOptions.Builder extends Object

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 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.