Open Parfyonator opened 6 months ago
Could you post your code? Were you actually recording a video while performing analysis?
Hi @g-apparence. I've already posted it. It is literally only that 5 lines of additional code added to CameraAwesomeBuilder.awesome
in main file of example. That's it. Nothing more. I don't see any sense in duplicating all of the code for these 5 lines.
You can even leave this function empty to reproduce the issue: onImageForAnalysis: (image) async {}
.
@g-apparence additional note about video recording: I'm using the built in functionality of CameraAwesomeBuilder.awesome
widget. Here is video recording of the screen. When I press stop button, I get the error I've mentioned in the issue description.
https://github.com/Apparence-io/CamerAwesome/assets/27166027/4d8d4cdd-da0b-45e3-84e8-05fe4c0c0b8b
Will make a try and tell you. Sorry for delay
Hi @g-apparence. I decided to dig a bit deeper and added some prints to video_camera_state.dart
and it throws an error when onImageForAnalysis
is present. Since await CamerawesomePlugin.recordVideo(captureRequest);
is wrapped in try block it is not visible in logs.
flutter: PlatformException(VIDEO_ERROR, can't record video when image stream is enabled, , null)
flutter: #0 CameraInterface.recordVideo (package:camerawesome/pigeon.dart:899:7)
<asynchronous suspension>
#1 VideoCameraState.startRecording (package:camerawesome/src/orchestrator/states/video_camera_state.dart:48:7)
<asynchronous suspension>
Maybe that will help.
Hi @g-apparence. Don't want to be pushy, just want to know if it is something that can be fixed relatively quickly or I should switch to camera plugin on iOS devices for now. Thanks.
Hi sorry, I have a lot of work on the ApparenceKit Supabase support.
I'm not sure that it is a problem with camerawesome or that this should not be possible on all devices. I have to take time and try this on all the devices I have for CamerAwesome.
Also I'm always open for contribution if you wanna help me on this.
I'm not good at native development especially Objective-C. So I'm not sure how to fix it. Also I'm not sure if I'll have time to dig into native iOS part in the nearest future since I have multiple projects.
Steps to Reproduce
Add
onImageForAnalysis
callback to example app. It can be as simple asExpected results
Video is recorded and available for playback after pressing the "Stop" button.
Actual results
I get the following error in logs
I cannot stop video recording due to this error.
About your device
Your flutter version