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
static val CAMERA: Int
Camera video source
Using the android.hardware.Camera API as video source.
Value: 1SURFACE
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