just_audio icon indicating copy to clipboard operation
just_audio copied to clipboard

Android audio playback capture policy

Open aminnzo opened this issue 2 years ago • 1 comments

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 Screen Shot 2022-08-04 at 16 20 24

aminnzo avatar Aug 04 '22 11:08 aminnzo

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?

ryanheise avatar Aug 04 '22 12:08 ryanheise

Hi, Have you solve this issue ?

nessblo avatar Oct 20 '22 15:10 nessblo

@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?

ryanheise avatar Oct 21 '22 02:10 ryanheise