From bdd0d86bea8023b52ff48ed0ddb0deb1fa4539bd Mon Sep 17 00:00:00 2001 From: YushraJewon Date: Fri, 4 Oct 2024 10:58:08 +0400 Subject: [PATCH 1/5] startRecording instead of startRecordingToOutputFileURL --- src/ios/CameraSessionManager.m | 2 +- src/ios/SimpleCameraPreview.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/CameraSessionManager.m b/src/ios/CameraSessionManager.m index 632f9f5..c910164 100644 --- a/src/ios/CameraSessionManager.m +++ b/src/ios/CameraSessionManager.m @@ -245,7 +245,7 @@ - (void)startRecording:(NSURL *)fileURL recordingDelegate:(id Date: Fri, 4 Oct 2024 11:19:10 +0400 Subject: [PATCH 2/5] add startRecordingToOutputFileURL --- src/ios/CameraSessionManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/CameraSessionManager.m b/src/ios/CameraSessionManager.m index c910164..632f9f5 100644 --- a/src/ios/CameraSessionManager.m +++ b/src/ios/CameraSessionManager.m @@ -245,7 +245,7 @@ - (void)startRecording:(NSURL *)fileURL recordingDelegate:(id Date: Fri, 4 Oct 2024 11:50:19 +0400 Subject: [PATCH 3/5] version 2.0.29 --- CHANGELOG.md | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- plugin.xml | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e7edce..47d3e13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.0.29](https://github.com/spoonconsulting/cordova-plugin-simple-camera-preview/compare/2.0.28...2.0.29) (2024-09-10) +* **iOS:** StartRecording + ## [2.0.28](https://github.com/spoonconsulting/cordova-plugin-simple-camera-preview/compare/2.0.27...2.0.28) (2024-09-10) * **iOS:** Add video ability for iOS diff --git a/package-lock.json b/package-lock.json index 915ae21..581686f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@spoonconsulting/cordova-plugin-simple-camera-preview", - "version": "2.0.28", + "version": "2.0.29", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@spoonconsulting/cordova-plugin-simple-camera-preview", - "version": "2.0.28", + "version": "2.0.29", "license": "Apache 2.0", "devDependencies": {} } diff --git a/package.json b/package.json index bb8c8e4..78c7d83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@spoonconsulting/cordova-plugin-simple-camera-preview", - "version": "2.0.28", + "version": "2.0.29", "description": "Cordova plugin that allows camera interaction from HTML code for showing camera preview below or on top of the HTML.", "keywords": [ "cordova", diff --git a/plugin.xml b/plugin.xml index 473eb5f..e18d9fc 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,6 +1,6 @@ - + cordova-plugin-simple-camera-preview Cordova plugin that allows camera interaction from HTML code. Show camera preview popup on top of the HTML. From 60ceb31a52215bfd46552f25431222897395204a Mon Sep 17 00:00:00 2001 From: YushraJewon Date: Fri, 4 Oct 2024 14:11:12 +0400 Subject: [PATCH 4/5] remove not --- src/ios/CameraRenderController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/CameraRenderController.m b/src/ios/CameraRenderController.m index 19d56fd..dc60b13 100644 --- a/src/ios/CameraRenderController.m +++ b/src/ios/CameraRenderController.m @@ -58,7 +58,7 @@ - (void) viewWillAppear:(BOOL)animated { } - (void)onAppWillResignActive { - if (!self.sessionManager.session.running){ + if (self.sessionManager.session.running){ [self.sessionManager stopRecording]; } } From 6efaa993884e17ca56de7bdaf2932a47fd82e8aa Mon Sep 17 00:00:00 2001 From: YushraJewon Date: Fri, 4 Oct 2024 14:19:45 +0400 Subject: [PATCH 5/5] bump version 2.0.30 --- CHANGELOG.md | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- plugin.xml | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47d3e13..dd0ec0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.0.30](https://github.com/spoonconsulting/cordova-plugin-simple-camera-preview/compare/2.0.29...2.0.30) (2024-09-10) +* **iOS:** Pause video on when app is in background + ## [2.0.29](https://github.com/spoonconsulting/cordova-plugin-simple-camera-preview/compare/2.0.28...2.0.29) (2024-09-10) * **iOS:** StartRecording diff --git a/package-lock.json b/package-lock.json index 581686f..70f7c48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@spoonconsulting/cordova-plugin-simple-camera-preview", - "version": "2.0.29", + "version": "2.0.30", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@spoonconsulting/cordova-plugin-simple-camera-preview", - "version": "2.0.29", + "version": "2.0.30", "license": "Apache 2.0", "devDependencies": {} } diff --git a/package.json b/package.json index 78c7d83..574bd44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@spoonconsulting/cordova-plugin-simple-camera-preview", - "version": "2.0.29", + "version": "2.0.30", "description": "Cordova plugin that allows camera interaction from HTML code for showing camera preview below or on top of the HTML.", "keywords": [ "cordova", diff --git a/plugin.xml b/plugin.xml index e18d9fc..2db431a 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,6 +1,6 @@ - + cordova-plugin-simple-camera-preview Cordova plugin that allows camera interaction from HTML code. Show camera preview popup on top of the HTML.