Android.Media.MediaRecorder.SetVideoEncoder Method
Sets the video encoder to be used for recording.

Syntax

[Android.Runtime.Register("setVideoEncoder", "(I)V", "GetSetVideoEncoder_IHandler")]
public virtual void SetVideoEncoder ([Android.Runtime.GeneratedEnum] VideoEncoder video_encoder)

Parameters

video_encoder
the video encoder to use.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif it is called before setOutputFormat() or after prepare()

Remarks

Sets the video encoder to be used for recording. If this method is not called, the output file will not contain an video track. Call this after setOutputFormat() and before prepare().

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3