Managing the audio focus with Oboe #1467
SimarRajput
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I have developed an App that plays sinewave using Oboe library. I am using Sharing mode as Exclusive and Content-Type is Music.
Now if I play song on Spotify and then open the Oboe app I developed, the audio from Spotify and my app gets mixed up.
My requirement is when I open my app, Spotify should stop playing the audio file as the focus has shifted to Oboe App. How to handle this with the Oboe framework. I see that Exclusive mode does that and the stream I created will be the only one to use a source or sink. But it is not working for me.
Am I missing anything here?
Thanks,
Simar
Beta Was this translation helpful? Give feedback.
All reactions