How Do I Manage The Audio Output Levels With Pjsua2 For Android
I have an Android project that uses PJSUA2 for VoIP communication and everything else works just fine. I am stymied however, with a problem where I cannot get the Volume controls t
Solution 1:
So I finally figured out the way to do this reasonably with PJSUA was to implement my own keypress handler and then vary the Rx Audio Levels accordingly. Hope this helps someone who was stuck as bad as I was.
Solution 2:
Pjsip by default uses the voice communication / phone stream for playing audio. To control the volume with the system volume control, you should adjust the call audio volume, not the media/music volume:
setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);
If you would rather that the audio is actually played back as a media/music type of stream and be controlled by that volume slider, see my suggestion for how to do that here
Post a Comment for "How Do I Manage The Audio Output Levels With Pjsua2 For Android"