VideoOutputOptions

data class VideoOutputOptions(val targetResolution: Size = CommonResolutions.FHD_16_9, val enableAudio: Boolean = false, val enablePersistentRecorder: Boolean = false, val enableHigherResolutionCodecs: Boolean = false, val targetBitRate: Double? = null, val fileType: RecorderFileType = RecorderFileType.MOV)

Configuration options of a CameraVideoOutput, see CameraFactory.createVideoOutput.

Constructors

Link copied to clipboard
constructor(targetResolution: Size = CommonResolutions.FHD_16_9, enableAudio: Boolean = false, enablePersistentRecorder: Boolean = false, enableHigherResolutionCodecs: Boolean = false, targetBitRate: Double? = null, fileType: RecorderFileType = RecorderFileType.MOV)

Properties

Link copied to clipboard

Whether to record audio. Requires the microphone permission.

Link copied to clipboard

Whether to allow higher resolution (and possibly higher bit-rate and frame rate) codecs, at the risk of higher power usage and device-specific instability. Android only.

Link copied to clipboard

Whether the recorder is persistent, i.e. keeps recording while switching cameras. It may use a less native recording path: an AVCaptureVideoDataOutput + AVAssetWriter pipeline on iOS, asPersistentRecording() on Android.

Link copied to clipboard

The container file type. Android always records .mp4 and ignores it.

Link copied to clipboard

The target bit-rate, in bits per second, or null for the encoder's default.

Link copied to clipboard

The target video resolution. The CameraSession negotiates it with the other outputs and constraints, so it may not be met exactly; its aspect ratio is prioritized over its pixel count.