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 278228a commit 8427d99Copy full SHA for 8427d99
1 file changed
app/src/main/java/app/grapheneos/camera/CamConfig.kt
@@ -1090,12 +1090,15 @@ class CamConfig(private val mActivity: MainActivity) {
1090
View.VISIBLE
1091
}
1092
1093
- videoCapture =
1094
- VideoCapture.withOutput(
1095
- Recorder.Builder()
1096
- .setQualitySelector(QualitySelector.from(videoQuality))
1097
- .build()
1098
- )
+ val videoCaptureBuilder = VideoCapture.Builder(
+ Recorder.Builder()
+ .setQualitySelector(QualitySelector.from(videoQuality))
+ .build()
+ )
+
1099
+ videoCaptureBuilder.setTargetFrameRate(mActivity.camConfig.videoFrameRate)
1100
1101
+ videoCapture = videoCaptureBuilder.build()
1102
1103
useCaseGroupBuilder.addUseCase(videoCapture!!)
1104
0 commit comments