Skip to content

WrichikBasu/AudioFocusController

Repository files navigation

AudioFocusController

An Android library to help you manage Audio Focus in your app with minimal code.

JitPack

GitHub All Releases   GitHub last commit

 

minSDK   targetSdk

GitHub deployments

It is important to control audio focus in your app if you want to play any sound (media, voice call, alarm, etc.) It would not be a pleasant situation to the user if two or more apps simultaneously play different sounds. The system of granting and abandoning audio focus makes sure that no two apps play their sounds at once. Therefore, before playing any sound, you must request the system for audio focus.

This library makes it easy for you to request audio focus, thereby reducing the number of lines you have to write.

Quick Setup Guide:

Please see here: https://wrichikbasu.github.io/AudioFocusController/#quick-setup-guide

Documentation:

Available here: https://wrichikbasu.github.io/AudioFocusController/javadoc/index.html

Demonstration app:

This repository comes bundled with an app that not only demonstrates how to use the library, but is also helpful in testing whether your app behaves correctly if it loses audio focus.

Download from Github icon

Get it on Google Play

Contributing:

Bug reports:

Please create an issue with as much details as possible. Bugs will be dealt with seriously and fixed as soon as possible.

Ideas/Feature Requests:

Ideas for improvement and feature requests are always welcome. Please post them in the Feature requests category under Discussions.

Questions:

We will try to answer all questions and help you in using this library. Please post your questions in the Q&A category under Discussions.

About

An Android library to help you manage Audio Focus in your app with minimal code.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages