SetPlaybackRateRequestData

public classSetPlaybackRateRequestDataextendsObject
implementsParcelableRequestData

Data structure for set playback rate command requests.

Inherited Constant Summary

Public Method Summary

JSONObject
getCustomData()
Returns the custom data.
Double
getPlaybackRate()
Returns the new playback rate.
Double
getRelativePlaybackRate()
Returns the new playback rate relative to current playback rate.
void
writeToParcel(Parcelout, int flags)

Inherited Method Summary

Public Methods

publicJSONObject getCustomData()

Returns the custom data.

publicDoublegetPlaybackRate()

Returns the new playback rate. Returnsnullif unspecified.

publicDoublegetRelativePlaybackRate()

Returns the new playback rate relative to current playback rate. Returns nullif unspecified.

New rate will be the result of multiplying the current rate with the value. For example a value of 1.1 will increase rate by 10%. (Only used if the playbackRate value is not provided).

If this field is specified in the original request, it will be automatically transalted into getPlaybackRate()based on the playback rate in the currentMediaStatus.

public voidwriteToParcel(Parcelout, int flags)