- state
- The current playback state, one of the following values: RemoteControlClient.PlaystateStopped, RemoteControlClient.PlaystatePaused, RemoteControlClient.PlaystatePlaying, RemoteControlClient.PlaystateFastForwarding, RemoteControlClient.PlaystateRewinding, RemoteControlClient.PlaystateSkippingForwards, RemoteControlClient.PlaystateSkippingBackwards, RemoteControlClient.PlaystateBuffering, RemoteControlClient.PlaystateError.
- timeInMs
- a 0 or positive value for the current media position expressed in ms (same unit as for when sending the media duration, if applicable, with MediaMetadataRetriever.MetadataKeyDuration in the NoType:android/media/RemoteControlClient$MetadataEditor;Href=../../../reference/android/media/RemoteControlClient.MetadataEditor.html). Negative values imply that position is not known (e.g. listening to a live stream of a radio) or not applicable (e.g. when state is RemoteControlClient.PlaystateBuffering and nothing had played yet).
- playbackSpeed
- a value expressed as a ratio of 1x playback: 1.0f is normal playback, 2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is playing (e.g. when state is RemoteControlClient.PlaystateError).
Sets the current playback state and the matching media position for the current playback speed.