Skip to content

Commit 59d5f94

Browse files
committed
bugfix. timing issue to capture with external camera [#116]
- external camera 서버 통신 및 캡쳐 타이밍 시간 보정
1 parent 26e4382 commit 59d5f94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

presenter/src/main/java/com/foke/together/presenter/screen/CameraScreen.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ fun CameraScreen(
127127
// stream 한장 받을때마다 오는 콜백
128128
//TODO: 화면 로딩(30프레임 이상) 후 재실행
129129
frameCount++
130-
if(frameCount > 30) {
130+
if(frameCount > 10) {
131131
frameCount = 0
132132
viewModel.startCaptureTimer()
133133
}

util/src/main/java/com/foke/together/util/AppPolicy.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object AppPolicy {
1616
const val EXTERNAL_CAMERA_WRITE_TIMEOUT = 10L
1717

1818
// capture settings
19-
const val CAPTURE_INTERVAL = 10000L
19+
const val CAPTURE_INTERVAL = 3000L
2020
const val CAPTURE_COUNT = 4
2121
const val COUNTDOWN_INTERVAL = 10L
2222

0 commit comments

Comments
 (0)