Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Handling loss and gain of audio focus #365

Open
2 of 4 tasks
rohit-ganapathy opened this issue Dec 1, 2020 · 1 comment
Open
2 of 4 tasks

Handling loss and gain of audio focus #365

rohit-ganapathy opened this issue Dec 1, 2020 · 1 comment

Comments

@rohit-ganapathy
Copy link

rohit-ganapathy commented Dec 1, 2020

Description

The module is failing in these two cases:

  1. If I have something audio playing on the app and move on to play something on spotify or youtube (i.e. I lose audio focus), the music keeps on playing.(Ideally it should emit a pause event?)

  2. If I play something on my app while a youtube video or a spotify song is playing, my app plays over them. Ideally the spotify song or YT video should get paused.

I see a MusicControlAudioFocusListener.java that seems to have the audio focus related methods but I doubt they're in action because my logging statements don't get triggered when audio focus changes.

  1. Platform ?

    • iOS
    • Android
  1. Device
  • Simulator
  • Real device
@lavpreetsandhu
Copy link

hi.. have you find any solution for this ?

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

No branches or pull requests

2 participants