SetPlaybackRateRequestData
Stay organized with collections
Save and categorize content based on your preferences.
Data structure for set playback rate command requests.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
finalClass<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcelarg0,
int arg1)
|
From interface com.google.android.gms.cast.RequestData
Public Methods
publicDoublegetPlaybackRate()
Returns the new playback rate. Returnsnull
if unspecified.
publicDoublegetRelativePlaybackRate()
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 currentMediaStatus
.
public voidwriteToParcel(Parcelout, int
flags)
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License,and code samples are licensed under theApache 2.0 License.For details, see theGoogle Developers Site Policies.Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-12-04 UTC.
[[[ "Easy to understand", "easyToUnderstand", "thumb-up" ],[ "Solved my problem", "solvedMyProblem", "thumb-up" ],[ "Other", "otherUp", "thumb-up" ]],[[ "Missing the information I need", "missingTheInformationINeed", "thumb-down" ],[ "Too complicated / too many steps", "tooComplicatedTooManySteps", "thumb-down" ],[ "Out of date", "outOfDate", "thumb-down" ],[ "Samples / code issue", "samplesCodeIssue", "thumb-down" ],[ "Other", "otherDown", "thumb-down" ]],[ "Last updated 2023-12-04 UTC." ],[[[ "`SetPlaybackRateRequestData` is a data structure for managing playback rate change requests for Cast devices." ],[ "It allows setting a new playback rate or a rate relative to the current one using `getPlaybackRate()` or `getRelativePlaybackRate()` respectively." ],[ "`getCustomData()` can be used to retrieve any custom data associated with the request." ],[ "This class implements `Parcelable` for efficient data transfer." ]]],[]]