Skip to content

Commit 07339a2

Browse files
committed
Implement FPS functionality
1 parent 6ab0bf2 commit 07339a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/app/grapheneos/camera/CamConfig.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,8 @@ class CamConfig(private val mActivity: MainActivity) {
11131113
if (mActivity.camConfig.saveVideoAsPreviewed)
11141114
videoCaptureBuilder.setMirrorMode(MirrorMode.MIRROR_MODE_ON_FRONT_ONLY)
11151115

1116+
videoCaptureBuilder.setTargetFrameRate(mActivity.camConfig.videoFrameRate)
1117+
11161118
videoCapture = videoCaptureBuilder.build()
11171119

11181120
useCaseGroupBuilder.addUseCase(videoCapture!!)

0 commit comments

Comments
 (0)