Closed doender closed 7 years ago
I think I fixed this by changing the AVAudioSession
mode from AVAudioSessionCategoryOptionMixWithOthers
to AVAudioSessionCategoryOptionDefaultToSpeaker
.
Thanks for raising this issue, and for the potential fix. I'm sorry for the late reply, and will look into this as soon as I can. It would probably be best if it the AVAudioSession category, could be configured when the plugin is started along with the other parameters. There are some cordova plugins for setting the category and category options (e.g. https://github.com/eworx/av-audio-session-adapter), so it would be really good if this plugin could be extended to support something similar.
Closing this issue, since there haven't been any activity for a while. Just give me a shout, if you want it to be reopened.
I am currently experiencing this issue, too. I fixed it by installing the av-audio-sesson-adapter plugin mentioned by @edimuj, and setting the option for AVAudioSession.CategoryOptions.DEFAULT_TO_SPEAKER after recording stops.
This is truly a great plugin which helped me a lot. However, I have a problem on iOS. After initializing the plugin like so:
the subsequent audio playback, for example through
<audio>
or<video>
tags, all have a very low volume, whereas the system level volume is at 100%. I tested it on iPhone 4S, 5S and 6S and it happens on all devices. Any idea what could cause this?