Language

VideoSource Enum

Definition

Enumerates values returned by the Camera, Default, and Surface members and taken as a parameter of the F:Android.Media.MediaRecorder.SetVideoSource member.

public enum VideoSource
type VideoSource = 
Inheritance
VideoSource

Fields

Name Value Description
Default 0
Camera 1

Camera video source Using the Camera API as video source.

Android reference for android.media.MediaRecorder.VideoSource.CAMERA.

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.

Surface 2

Surface video source Using a Surface as video source.

This flag must be used when recording from an android.hardware.camera2 API source.

When using this video source type, use MediaRecorder.getSurface() to retrieve the surface created by MediaRecorder.

Android reference for android.media.MediaRecorder.VideoSource.SURFACE.

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.

Remarks

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