MediaRecorder.SetVideoSource(VideoSource) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the video source to be used for recording.
[Android.Runtime.Register("setVideoSource", "(I)V", "GetSetVideoSource_IHandler")]
public virtual void SetVideoSource (Android.Media.VideoSource video_source);
[<Android.Runtime.Register("setVideoSource", "(I)V", "GetSetVideoSource_IHandler")>]
abstract member SetVideoSource : Android.Media.VideoSource -> unit
override this.SetVideoSource : Android.Media.VideoSource -> unit
Parameters
- video_source
- VideoSource
the video source to use
- Attributes
Exceptions
if 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().
Java documentation for android.media.MediaRecorder.setVideoSource(int)
.
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.