Share via


MediaController.TransportControls.SetPlaybackSpeed(Single) Method

Definition

Sets the playback speed.

[Android.Runtime.Register("setPlaybackSpeed", "(F)V", "", ApiSince=29)]
public void SetPlaybackSpeed (float speed);
[<Android.Runtime.Register("setPlaybackSpeed", "(F)V", "", ApiSince=29)>]
member this.SetPlaybackSpeed : single -> unit

Parameters

speed
Single

The playback speed

Attributes

Remarks

Sets the playback speed. A value of 1.0f is the default playback value, and a negative value indicates reverse playback. 0.0f is not allowed.

Java documentation for android.media.session.MediaController.TransportControls.setPlaybackSpeed(float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to