apache / apache/cordova-plugin-media
Use STREAM_RING instead of STREAM_MUSIC?
- Dominant language
- JavaScript
- Stars
- 391
- Forks
- 762
- PR merge metrics
- No merged PRs in 30d
Description
I was wondering if such a feature already exists or not? I noticed that when a sound is playing, the user can adjust the level up or down, even to silent. But it's adjusting the "Media", not the actual device sound. So a user might have the device sound still at 100% but the media sound at 0% which then prevents the sound from being heard at all.
I investigated a bit and found this is due to the plugin using "STREAM_MUSIC" instead of "STREAM_RING". Is there any easy way to change it to STREAM_RING?
Contributor guide
Research direction
Search the Android implementation for the STREAM_MUSIC usage mentioned in the issue and compare it with STREAM_RING. Verify the resulting volume behavior on an Android device; done means the plugin adjusts the intended device sound level without preventing media playback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100