tchvu3 / capacitor-voice-recorder

Capacitor plugin for voice recording
MIT License
75 stars 61 forks source link

On iOS the plugin does not work well with other audio playback plugins #13

Closed talkonadmin closed 2 years ago

talkonadmin commented 2 years ago

Upon recording start, the plugin sets the AVAudioSession category to record only which prevents the app from playing sounds with other audio plugins (e.g. native-audio). My solution was to set the category to playAndRecord but I assume the proper solution is to save the current category and restore it after recording stops.

tchvu3 commented 2 years ago

Good point, I will make sure to update the iOS version to support this. Thanks mate

azizcreativitykw commented 2 years ago

@tchvu3 is this is fixed now?

tchvu3 commented 2 years ago

@talkonadmin @azizcreativitykw this issues is resolved