From 59d5f9493796f67fe36d4de7fea7d4754d6e1112 Mon Sep 17 00:00:00 2001 From: Tony Dokyoon Kim Date: Sun, 17 Nov 2024 22:46:24 +0900 Subject: [PATCH] bugfix. timing issue to capture with external camera [#116] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - external camera 서버 통신 및 캡쳐 타이밍 시간 보정 --- .../java/com/foke/together/presenter/screen/CameraScreen.kt | 2 +- util/src/main/java/com/foke/together/util/AppPolicy.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/presenter/src/main/java/com/foke/together/presenter/screen/CameraScreen.kt b/presenter/src/main/java/com/foke/together/presenter/screen/CameraScreen.kt index 32caa9f..86b1582 100644 --- a/presenter/src/main/java/com/foke/together/presenter/screen/CameraScreen.kt +++ b/presenter/src/main/java/com/foke/together/presenter/screen/CameraScreen.kt @@ -127,7 +127,7 @@ fun CameraScreen( // stream 한장 받을때마다 오는 콜백 //TODO: 화면 로딩(30프레임 이상) 후 재실행 frameCount++ - if(frameCount > 30) { + if(frameCount > 10) { frameCount = 0 viewModel.startCaptureTimer() } diff --git a/util/src/main/java/com/foke/together/util/AppPolicy.kt b/util/src/main/java/com/foke/together/util/AppPolicy.kt index 93db937..3607233 100644 --- a/util/src/main/java/com/foke/together/util/AppPolicy.kt +++ b/util/src/main/java/com/foke/together/util/AppPolicy.kt @@ -16,7 +16,7 @@ object AppPolicy { const val EXTERNAL_CAMERA_WRITE_TIMEOUT = 10L // capture settings - const val CAPTURE_INTERVAL = 10000L + const val CAPTURE_INTERVAL = 3000L const val CAPTURE_COUNT = 4 const val COUNTDOWN_INTERVAL = 10L