audio_session
audio_session copied to clipboard
Crash when setting AVAudioSessionRouteSharingPolicy for iOS
On an iOS 14.5 simulator setting the AVAudioSessionRouteSharingPolicy will cause an exception or crash.
AVAudioSessionRouteSharingPolicy.defaultPolicyworks fineAVAudioSessionRouteSharingPolicy.longFormAudioandAVAudioSessionRouteSharingPolicy.longFormVideocause anOSStatus error -50platform exception*AVAudioSessionRouteSharingPolicy.independentcauses aLost connection to device.from the IDE without any Flutter or system logs.
*more info: https://stackoverflow.com/questions/26718103/what-does-osstatus-error-50-mean
Apple's documentation for independent says:
Apps shouldn’t try to set this value directly.
I wasn't able to get any exception on longFormAudio. Can you provide a minimal reproduction project?
Any update on this or is the issue resolved?