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