ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Why does not exoplayer pauses background music when video plays

Open ummerakbar45 opened this issue 8 years ago • 1 comments

This is not issue but question Why does not my video app stops background musics apps. Wyink app is playing music, I want when I open my app and plays any video(on exoplayer 2.9.0) , song on wyink should pause, but this is not happening.

I did same test on wyink and youtube and when video plays on youtube, wyink paused video

ummerakbar45 avatar Oct 08 '18 10:10 ummerakbar45

Your app should be requesting audio focus, which I'm guessing it's not doing. Note that your app should also pause itself if it subsequently loses audio focus. We recently made managing audio focus when using ExoPlayer much easier. Read this blog post for details.

ojw28 avatar Oct 10 '18 22:10 ojw28