maxrave-dev / maxrave-dev/SimpMusic
Add Ignore Audio Focus option
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 11.4k
- Forks
- 599
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 7
Description
Problem Description
When you are using the music player in the background while using another app, if an ad pops up and requests audio focus, the music will pause and most of the time doesn't successfully resume.
Proposed Solution
The solution is to use the audio focus feature that is being called by the ad and have the music player ignore requests for audio focus. This will prevent the music player from being paused when an add pops up and doesn't release audio focus after the ad completes.
Alternative Solutions
I am not aware of another method to accomplish what is needed.
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Android music player's audio-focus handling and the existing settings or playback controls. Trace how an ad's audio-focus request pauses playback, then determine where an Ignore Audio Focus option belongs. Done means the option is exposed to users and its enabled behavior prevents the described pause without breaking normal playback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100