Udostępnij za pośrednictwem


MediaSync.PlaybackParams Property

Definition

Gets the playback rate using PlaybackParams. -or- Sets playback rate using PlaybackParams.

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

Property Value

the playback rate being used.

Attributes

Remarks

Property getter documentation:

Gets the playback rate using PlaybackParams.

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

Property setter documentation:

Sets playback rate using PlaybackParams.

When using MediaSync with AudioTrack, set playback params using this call instead of calling it directly on the track, so that the sync is aware of the params change.

This call also works if there is no audio track.

Java documentation for android.media.MediaSync.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