Added in API level 3

VideoSource

class VideoSource
kotlin.Any
   ↳ android.media.MediaRecorder.VideoSource

Defines the video source. These constants are used with MediaRecorder#setVideoSource(int).

Summary

Constants
static Int

Camera video source

static Int

static Int

Surface video source

Constants

CAMERA

Added in API level 3
static val CAMERA: Int

Camera video source

Using the android.hardware.Camera API as video source.

Value: 1

DEFAULT

Added in API level 3
static val DEFAULT: Int
Value: 0

SURFACE

Added in API level 21
static val SURFACE: Int

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.

Value: 2