Closed edusperoni closed 2 years ago
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);
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
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
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