Partager via


MediaRecorder.Start Method

Definition

Begins capturing and encoding data to the file specified with setOutputFile().

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

Exceptions

if it is called before prepare().

Remarks

Begins capturing and encoding data to the file specified with setOutputFile(). Call this after prepare().

Since API level 13, if applications set a camera via #setCamera(Camera), the apps can use the camera after this method call. The apps do not need to lock the camera again. However, if this method fails, the apps should still lock the camera back. The apps should not start another recording session during recording.

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

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