GithubHelp home page GithubHelp logo

Comments (4)

Iojjj avatar Iojjj commented on July 16, 2024

You can check sources but no, this library doesn't subscribe any listeners except Visualizer. Provide a sample project with amount of code sufficient to reproduce the issue.

from waveinapp.

MinhDang685 avatar MinhDang685 commented on July 16, 2024

@Iojjj thanks for reply. I had add my project
my project: https://github.com/MinhDang685/MediaPlayerApp/
Thanks again.

from waveinapp.

Iojjj avatar Iojjj commented on July 16, 2024

What do you expect from your app? I just checked it and it receives and looses focus as expected:

D/AudioFocus: Audio focus received
D/AudioManager: AudioManager dispatching onAudioFocusChange(-1) for android.media.AudioManager@31bf2309com.myapp.mediaplayerapp.MainActivity$1@d04d90e
E/AudioFocus: AUDIOFOCUS_LOSS
D/AudioManager: AudioManager dispatching onAudioFocusChange(1) for android.media.AudioManager@31bf2309com.myapp.mediaplayerapp.MainActivity$1@d04d90e
I/AudioFocus: AUDIOFOCUS_GAIN

My scenario:

  1. Opened your app (uncommented mediaPlayer.start() to start playing of audio at app's start). Received Audio focus received.
  2. Switched to different music app (Play Music)
  3. Started music in 3rd party app. Received AUDIOFOCUS_LOSS
  4. Completely closed 3rd party app (swiping from Recents), because Play Music doesn't release focus on pausing of playback.
  5. App received AUDIOFOCUS_GAIN

from waveinapp.

MinhDang685 avatar MinhDang685 commented on July 16, 2024

@Iojjj Maybe my device had a problem,
Thanks :D

from waveinapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.