Skip to content

feat(android): better focus management between multiple players #191

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

Merged

Conversation

edusperoni
Copy link
Contributor

Introduce AudioFocusManager on android that will manage focus.

When audioMixing is true, player will use a global AudioFocusManager

If the developer doesn't want to handle focus at all, they just need to do player.setAudioFocusManager(null);

This allows for a single instance of focusRequest that will request focus at start and keeps track of when it needs to abandon focus

@NathanWalker NathanWalker merged commit f92853b into nstudio:master Jul 31, 2021
@NathanWalker
Copy link
Member

Excellent @edusperoni 👍 - I think now that this is in we'll then take master and move it over to the plugin workspace here to improve managing this in future: https://github.com/nstudio/nativescript-plugins

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

Successfully merging this pull request may close these issues.

2 participants