-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
setting to disable AudioFocus request #295
Comments
I'm not sure about adding it to the audio_session plugin, but I do like the idea of adding another option to the Note that now that the plugin has been migrated to null-safety, it is likely that this feature will be added to the |
This is now implemented in the latest commit on the Let me know if you find the API suitable or if you would like further changes. Note that to try it out, you'll need to use a |
thank you sir, works like a dream!
…On Tue, Feb 2, 2021 at 11:06 AM ryanheise ***@***.***> wrote:
This is now implemented in the latest commit on the nnbd branch. You can
now pass handleAudioSessionActivation: true as a constructor parameter to
prevent just_audio from handling activation itself.
Let me know if you find the API suitable or if you would like further
changes.
Note that to try it out, you'll need to use a git dependency with a ref
pointing to the nnbd branch and also a path pointing to the just_audio
subdirectory of the repository (documented here
<https://flutter.dev/docs/development/packages-and-plugins/using-packages>
).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#295 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACX4MNRTJSGSOYA424O2XZ3S47FBBANCNFSM4W6GT2FQ>
.
|
Great to hear! I'll close this issue. Note that I may make further commits for other features before the next release, so it may be safer if you are directly depending on the git version to reference that specific commit in the |
First of all I wan't to thank you for your amazing work. Did I miss something? Here is my code..
Thank you in advance. |
In terms of other audio apps interrupting your audio app, AVQueuePlayer (the underlying iOS API) has a mind of its own when it comes to pausing audio during an interruption. There is no way I can control it from within just_audio. That is one of the reasons #334 may be a good idea. But in terms of your audio app interrupting Spotify, that happens because you have requested just_audio to handle the audio session activation. Try passing in a |
Thx for your feedback. My app should behave like a navigation app. Therefore, the current playback (spotify) should not be paused. My audio should behave like a push notification sound. Is this possible with your libs? |
You should look into audio_session which exposes all of the iOS audio session settings. The documentation for these settings is the source Apple documentation. |
Thank you. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio. |
Is your feature request related to a problem? Please describe.
I am changing my app from using the audioplayers plugin to the just_audio plugin but just_audio is requesting Audio Focus and for my app I specifically do not want to request Audio Focus.
I want my app to be able to run in parallel with music streaming apps like Spotify, without the stream ducking or stopping.
Right now I am developing on Android only, but will use iOS in a later stage
Describe the solution you'd like
I'd like a setting to disable the Audio Focus request
Describe alternatives you've considered
Maybe this should be an option in the audio_session plugin
The text was updated successfully, but these errors were encountered: