Sdílet prostřednictvím


MediaPlayer.PlaybackParams Property

Definition

Gets the playback params, containing the current playback rate. -or- Sets playback rate using PlaybackParams.

public virtual Android.Media.PlaybackParams PlaybackParams { [Android.Runtime.Register("getPlaybackParams", "()Landroid/media/PlaybackParams;", "GetGetPlaybackParamsHandler", ApiSince=23)] get; [Android.Runtime.Register("setPlaybackParams", "(Landroid/media/PlaybackParams;)V", "GetSetPlaybackParams_Landroid_media_PlaybackParams_Handler", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getPlaybackParams", "()Landroid/media/PlaybackParams;", "GetGetPlaybackParamsHandler", ApiSince=23)>]
[<set: Android.Runtime.Register("setPlaybackParams", "(Landroid/media/PlaybackParams;)V", "GetSetPlaybackParams_Landroid_media_PlaybackParams_Handler", ApiSince=23)>]
member this.PlaybackParams : Android.Media.PlaybackParams with get, set

Property Value

the playback params.

Attributes

Remarks

Property getter documentation:

Gets the playback params, containing the current playback rate.

Java documentation for android.media.MediaPlayer.getPlaybackParams().

Property setter documentation:

Sets playback rate using PlaybackParams. The object sets its internal PlaybackParams to the input, except that the object remembers previous speed when input speed is zero. This allows the object to resume at previous speed when start() is called. Calling it before the object is prepared does not change the object state. After the object is prepared, calling it with zero speed is equivalent to calling pause(). After the object is prepared, calling it with non-zero speed is equivalent to calling start().

Java documentation for android.media.MediaPlayer.setPlaybackParams(android.media.PlaybackParams).

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