breautek commented on issue #295:
URL: 
https://github.com/apache/cordova-plugin-media/issues/295#issuecomment-718131238


   I'm not so certain that code snippet is actually used.
   
   
https://github.com/apache/cordova-plugin-media/blob/a10c6d025fe7b663032db09463293a10738c7575/src/android/AudioPlayer.java#L573-L580
   
   This plugin's `AudioPlayer` class uses 
[MediaPlayer](https://developer.android.com/reference/android/media/MediaPlayer?hl=en#setVolume(float,%20float))
 APIs, not the `AudioManager` apis. I'm not an expert in this area but I think 
`MediaPlayer` is a simplistic API that covers most use cases, but it's not 
robust, whereas the `AudioManager`, with some limitations, has full control 
over audio volumes.
   
   Forking this plugin and replace `MediaPlayer` usages with `AudioManager`, at 
least for volume control is probably your solution.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to