Android.Media.MediaRecorder.SetVideoSource Method
Sets the video source to be used for recording.

Syntax

[Android.Runtime.Register("setVideoSource", "(I)V", "GetSetVideoSource_IHandler")]
public virtual void SetVideoSource ([Android.Runtime.GeneratedEnum] VideoSource video_source)

Parameters

video_source
the video source to use

Exceptions

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

Remarks

Sets the video source to be used for recording. If this method is not called, the output file will not contain an video track. The source needs to be specified before setting recording-parameters or encoders. Call this only before setOutputFormat().

[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