Closed cark1 closed 4 years ago
Completely ignoring the errors doesn't look good to me. Is there any ways to distinguish the different scenarios and still emit the error when appropriate?
Yeah, you are totally right. We could skip the error only when we have this specific error code: AVAudioSessionErrorCodeIsBusy
Thanks!
Hi @kevinresol , any chance to have a new release on npm? Thank you!
Released 1.4.0
Released 1.4.0
Thank you!
Using AVAudioSessionCategoryPlayAndRecord is possibile to have other media playing (for example a muted video).
If we have another active media (for example a video) and we try to terminate the AVAudioSession we have an error. And if we have an error, rejectStop is called and we lose the recording. We could just try to deactivate the AVAudioSession, but if this is not possible, we shouldn't make fail the recording entirely.