SeekRequestData

public classSeekRequestDataextendsObject
implementsParcelableRequestData

Data structure for seek command requests.

Nested Class Summary

@interface SeekRequestData.SeekResumeState The state enum for the action to take after the seek operation has finished.

Constant Summary

long SEEK_POSITION_INFINITE_MS The constant standing for infinite position (in milliseconds) in seek requests.

Inherited Constant Summary

Public Method Summary

Long
getCurrentTime()
Returns the absolute time to seek to, in milliseconds.
JSONObject
getCustomData()
Returns the custom data.
Long
getRelativeTime()
Returns the time to seek to, relative to the current position, in milliseconds.
int
getResumeState()
Returns the resume state.
void
writeToParcel(Parcelout, int flags)

Inherited Method Summary

Constants

public static final long SEEK_POSITION_INFINITE_MS

The constant standing for infinite position (in milliseconds) in seek requests.

Constant Value:4294967296000

Public Methods

publicLonggetCurrentTime()

Returns the absolute time to seek to, in milliseconds.

If the returned value is SEEK_POSITION_INFINITE_MS,then request indicates to seek to the end of stream or live position.

This may returnnullif the absolute time is not provided.

publicJSONObject getCustomData()

Returns the custom data.

publicLonggetRelativeTime()

Returns the time to seek to, relative to the current position, in milliseconds.

This may returnnullif the relative time is not provided.

If notnull,the getCurrentTime()field should be ignored.

public intgetResumeState()

Returns the resume state. If it isSeekResumeState#PLAYBACK_UNCHANGED, the playback state should be unchanged.

public voidwriteToParcel(Parcelout, int flags)