library / dev.bmcreations.scrcast.config / VideoConfig
VideoConfig¶
data class VideoConfig :
Parcelable
An immutable data class representing configuration options for the recording.
Constructors¶
Name | Summary |
---|---|
<init> | An immutable data class representing configuration options for the recording.VideoConfig(width: Int = -1, height: Int = -1, videoEncoder: Int = MediaRecorder.VideoEncoder.H264, bitrate: Int = 8_000_000, frameRate: Int = 60, maxLengthSecs: Int = 0) |
Properties¶
Name | Summary |
---|---|
bitrate | Defines the video bitrate to be used for the recording.val bitrate: Int |
frameRate | Defines the video frame rate to be used for the recording.val frameRate: Int |
height | Height of the video recording frame.val height: Int |
maxLengthSecs | Defines the maximum length of time (in seconds) desired for the recording. If the recording session hits this defined time limit, the recording will auto end.val maxLengthSecs: Int |
videoEncoder | Defines the video encoding to be used for the recording.val videoEncoder: Int |
width | Width of the video recording frame.val width: Int |