Partager via


MediaSync.Flush Method

Definition

Flushes all buffers from the sync object.

[Android.Runtime.Register("flush", "()V", "", ApiSince=23)]
public void Flush ();
[<Android.Runtime.Register("flush", "()V", "", ApiSince=23)>]
member this.Flush : unit -> unit
Attributes

Remarks

Flushes all buffers from the sync object.

All pending unprocessed audio and video buffers are discarded. If an audio track was configured, it is flushed and stopped. If a video output surface was configured, the last frame queued to it is left on the frame. Queue a blank video frame to clear the surface,

No callbacks are received for the flushed buffers.

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

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