CamerAwesome
CamerAwesome copied to clipboard
Camera state remains as VideoRecordingCameraState when before start recording the audio is disabled.
Steps to Reproduce
I use RecordUI and on the iniState
I subscribe to the camera state to listen to an event listener.
On the event listener, I have some if
conditions to check if the recording was successful, such as:
if (event != null && event.status == MediaCaptureStatus.success)
If before recording I use the cameraState.enableAudio(false) or CamerawesomePlugin.setAudioMode(false) to disable the audio, then when the flow reaches the above if condition, the camera state is VideoRecordingCameraState. But If I don't disable the audio before recording, then the cameraState in the same position would be, correctly, VideoCameraState.
Expected results
Since the video recording is over at that point, then I would expect the camera state to be VideoCameraState and not VideorecordingCameraState.
About your device
Brand | Model | OS |
---|---|---|
Apple | iPhone 12 | 16.3.1 |
Your flutter version
Flutter 3.7.12 • channel stable • https://github.com/flutter/flutter.git Framework • revision 4d9e56e694 (7 weeks ago) • 2023-04-17 21:47:46 -0400 Engine • revision 1a65d409c7 Tools • Dart 2.19.6 • DevTools 2.20.1