SeekRequestData

public class SeekRequestData extends Object
implements Parcelable RequestData

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(Parcel out, 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

public Long getCurrentTime ()

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 return null if the absolute time is not provided.

public JSONObject getCustomData ()

Returns the custom data.

public Long getRelativeTime ()

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

This may return null if the relative time is not provided.

If not null, the getCurrentTime() field should be ignored.

public int getResumeState ()

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

public void writeToParcel (Parcel out, int flags)