mozartec / capacitor-microphone

This Microphone API provides the ability to interact with the microphone and record Audio
MIT License
23 stars 10 forks source link

Crash on stopRecord when microphone is used by an other app like teams #16

Open karimBenBechir opened 1 year ago

karimBenBechir commented 1 year ago

When microphone is used by an other app, "startRecording" return 'cannot record on this phone' and returns 'recording in progress' when triggering one again. How can the record be in progress if "startRecording" throws error ? Calling "stopRecording" when "Recording in progress" crash the app and throws this error: Thread 7: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value