Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when setting AVAudioSessionRouteSharingPolicy for iOS #40

Open
Fleximex opened this issue Sep 13, 2021 · 2 comments
Open

Crash when setting AVAudioSessionRouteSharingPolicy for iOS #40

Fleximex opened this issue Sep 13, 2021 · 2 comments

Comments

@Fleximex
Copy link

Fleximex commented Sep 13, 2021

On an iOS 14.5 simulator setting the AVAudioSessionRouteSharingPolicy will cause an exception or crash.

  • AVAudioSessionRouteSharingPolicy.defaultPolicy works fine
  • AVAudioSessionRouteSharingPolicy.longFormAudio and AVAudioSessionRouteSharingPolicy.longFormVideo cause an OSStatus error -50 platform exception*
  • AVAudioSessionRouteSharingPolicy.independent causes a Lost 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

@ryanheise
Copy link
Owner

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?

@ryanheise
Copy link
Owner

Any update on this or is the issue resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants