AudioFocusChangeListener Demo
Bibliotecas y demos | 17.6MB
Android plugin library that informs unity about audio focus changes. It also has a reliable way of telling if other applications are currently playing music within unity.
Why use this library?
Because otherwise unity's fmod implementation will screw up android's AudioManager.html#isMusicActive() and forcing it to lie and it always returns true, even if no music is being played on the device at all.
Why is this cool?
Now you can enhance the usability for the end-user by muting your application music automatically when the user listens to music in the background while using your app and more importantly automatically turn the music back on, once mp3 player in the background has finished playing.
Actualizada: 2020-10-08
Versión actual: 0.1b
Requiere Android: Android 2.3 or later