Android.Media.MediaRecorder.SetVideoSize Method
Sets the width and height of the video to be captured.

Syntax

[Android.Runtime.Register("setVideoSize", "(II)V", "GetSetVideoSize_IIHandler")]
public virtual void SetVideoSize (int width, int height)

Parameters

width
the width of the video to be captured
height
the height of the video to be captured

Exceptions

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

Remarks

Sets the width and height of the video to be captured. Must be called after setVideoSource(). Call this after setOutFormat() but 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