just_audio
just_audio copied to clipboard
Android audio playback capture policy
Is your feature request related to a problem? Please describe. I was looking for controlling audio capture by system and other apps and I find setAllowedCapturePolicy in AudioAttributes.Builder that has been commented in the code.
Describe the solution you'd like I've checked android documentation and this seems you're implemented all things. Not sure why this section is commented.
Describe alternatives you've considered None.
Additional context
AudioPlayer.java
It's not the Android class actually, I am using the ExoPlayer version of that class, and the older version of ExoPlayer I was using at that time did not support setAllowedCapturePolicy
. It seems that support has since been added, so it is theoretically possible to add this back in. Would you be interested in trying to uncomment that line yourself and if it works, you could submit it as a pull request?
Hi, Have you solve this issue ?
@nessblo You can see the entire history of this issue by reading the comments above. If you read it, you can see that I have made a suggestion with my very last question in my last comment. So, are you interested in trying to uncomment that line yourself to see if it works?