We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acba473 commit 0c91e7bCopy full SHA for 0c91e7b
1 file changed
app/src/main/java/app/grapheneos/camera/CamConfig.kt
@@ -1206,10 +1206,15 @@ class CamConfig(private val mActivity: MainActivity) {
1206
View.VISIBLE
1207
}
1208
1209
- val videoCaptureBuilder = VideoCapture.Builder(
1210
- Recorder.Builder()
+ val recorderBuilder = Recorder.Builder()
1211
.setQualitySelector(QualitySelector.from(videoQuality))
1212
- .build()
+
+ if (mActivity.camConfig.videoBitRateValue != 0) {
1213
+ recorderBuilder.setTargetVideoEncodingBitRate(mActivity.camConfig.videoBitRate)
1214
+ }
1215
1216
+ val videoCaptureBuilder = VideoCapture.Builder(
1217
+ recorderBuilder.build()
1218
)
1219
1220
videoCaptureBuilder.setVideoStabilizationEnabled(mActivity.camConfig.enableEIS)
0 commit comments