Comments (4)
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.
@Iojjj thanks for reply. I had add my project
my project: https://github.com/MinhDang685/MediaPlayerApp/
Thanks again.
from waveinapp.
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:
- Opened your app (uncommented
mediaPlayer.start()
to start playing of audio at app's start). ReceivedAudio focus received
. - Switched to different music app (Play Music)
- Started music in 3rd party app. Received
AUDIOFOCUS_LOSS
- Completely closed 3rd party app (swiping from Recents), because Play Music doesn't release focus on pausing of playback.
- App received
AUDIOFOCUS_GAIN
from waveinapp.
@Iojjj Maybe my device had a problem,
Thanks :D
from waveinapp.
Related Issues (20)
- Visualizer not working when initialize VisualizerDbmHandler with the parameter audioSessionId=0 HOT 2
- i cant open in android studio HOT 1
- How can I know whether waves are being shown correctly?
- Workaround file consumes 1mb (while for many unnecessary) HOT 1
- library dont work in Sony Xperia z5 premium
- Need Help
- Color Issue HOT 1
- waves not work when I paly audio HOT 1
- audiovisualization=glview as AudioVisualization ---- not able to get bubbles and waves HOT 1
- Cannot initialise visualizer engine, error -3
- Layer frequency HOT 1
- cant run github code in latest android studio HOT 1
- GLWaveLayer.produceBubbles (Unknown Source) Error HOT 7
- VisualizerDbmHandler not work in version 1.0.0 HOT 1
- Junk file automatically gets included in the res folder. HOT 1
- Customizing threshold/inertia on waves?
- Xamarin Android HOT 1
- Cannot Initialize Engine -3 HOT 1
- NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
- It does not work neither on a virtual device targeting Android 10 nor a physical Samsung Note 8 targeting Android 9 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waveinapp.