Sdílet prostřednictvím


MediaRecorder.Pause Method

Definition

Pauses recording.

[Android.Runtime.Register("pause", "()V", "GetPauseHandler", ApiSince=24)]
public virtual void Pause ();
[<Android.Runtime.Register("pause", "()V", "GetPauseHandler", ApiSince=24)>]
abstract member Pause : unit -> unit
override this.Pause : unit -> unit
Attributes

Remarks

Pauses recording. Call this after start(). You may resume recording with resume() without reconfiguration, as opposed to stop(). It does nothing if the recording is already paused.

When the recording is paused and resumed, the resulting output would be as if nothing happend during paused period, immediately switching to the resumed scene.

Java documentation for android.media.MediaRecorder.pause().

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