Open RSATom opened 2 years ago
I found this issue while was trying to solve https://github.com/apache/cordova-plugin-media/issues/306. I was trying to add withOptions:AVAudioSessionCategoryOptionMixWithOthers
to https://github.com/apache/cordova-plugin-media/blob/master/src/ios/CDVSound.m#L374 but it was working only on second play...
It blows my mind that this isn't configurable inside this highly used plugin.
According to AVAudioPlayer docs
prepareToPlay
activates audio session (in plugin it happens here). But plugin callssetCategory
forAVAudioSession
a little bit later, i.e. at wrong time.