AI-generated Key Takeaways
-
SetPlaybackRateRequestData is a data structure used for set playback rate command requests.
-
It includes methods to retrieve custom data, the absolute playback rate, and the playback rate relative to the current rate.
-
The
writeToParcelmethod is available for writing the data structure to a Parcel.
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(Parcel out, int
flags)
|
Inherited Method Summary
Public Methods
public JSONObject getCustomData ()
Returns the custom data.
public Double getPlaybackRate ()
Returns the new playback rate. Returns null if unspecified.
public Double getRelativePlaybackRate ()
Returns the new playback rate relative to current playback rate. Returns
null if 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 current MediaStatus.