From a6f5d162561e2982b993d8a59bdadb10d352b01c Mon Sep 17 00:00:00 2001 From: YushraJewon Date: Tue, 29 Oct 2024 14:34:17 +0400 Subject: [PATCH] remove timer from simpleCameraPreview and add it on cameraSessionManager --- src/ios/CameraSessionManager.h | 1 + src/ios/CameraSessionManager.m | 9 +++++++++ src/ios/SimpleCameraPreview.m | 10 ---------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ios/CameraSessionManager.h b/src/ios/CameraSessionManager.h index 1f98aa0..4d0a07f 100644 --- a/src/ios/CameraSessionManager.h +++ b/src/ios/CameraSessionManager.h @@ -30,4 +30,5 @@ @property (nonatomic) AVCaptureVideoDataOutput *dataOutput; @property (nonatomic, weak) id delegate; @property (nonatomic) AVCaptureMovieFileOutput *movieFileOutput; +@property (nonatomic) NSTimer *videoTimer; @end diff --git a/src/ios/CameraSessionManager.m b/src/ios/CameraSessionManager.m index 632f9f5..3f0c81e 100644 --- a/src/ios/CameraSessionManager.m +++ b/src/ios/CameraSessionManager.m @@ -246,6 +246,11 @@ - (void)startRecording:(NSURL *)fileURL recordingDelegate:(id