MediaRecorder.Prepare Method

Definition

Prepares the recorder to begin capturing and encoding data.

[Android.Runtime.Register("prepare", "()V", "GetPrepareHandler")]
public virtual void Prepare ();
[<Android.Runtime.Register("prepare", "()V", "GetPrepareHandler")>]
abstract member Prepare : unit -> unit
override this.Prepare : unit -> unit
Attributes

Exceptions

if it is called after start() or before setOutputFormat().

if prepare fails otherwise.

Remarks

Prepares the recorder to begin capturing and encoding data. This method must be called after setting up the desired audio and video sources, encoders, file format, etc., but before start().

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

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