Please excuse our look. We're just getting started here.
Want to learn more about Twilio Forums? Check out our FAQ page here.I want to set Audio volume to music volume setting in Twilio on Android.

Currently the audio is played at the phone volume setting, but can it be played at the music volume setting?
Answers
-
Hi @as1412 , I am happy to help try and find a solution for you. For clarity what twilio product are you trying to accomplish this on?
-
Thank you for your answer. I am using Twilio Video.
I am trying to use "Quickstart" from the URL below, but I want to use the system music volume setting to adjust the volume, but currently it is changed by the phone volume.
https://github.com/twilio/video-quickstart-android
I could not change it as shown below.
How can I do this?
setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);
↓
setVolumeControlStream(AudioManager.STREAM_MUSIC);
-
@as1412 ah gotcha! I will reach out to our Twilio support teams to see what I can dig up. Thank you for your patience.
-
Hi @as1412 ,
According to our Twilio support team, the Twilio Video Android SDK does not officially support audio device management.
Per the documentation (found here: https://www.twilio.com/docs/video/android-configuring-audio-video-inputs-and-outputs) the suggested method to control audio devices on Android would be to use the Audio Switch library (linked below).
Audioswitch Twilio library: https://github.com/twilio/audioswitch
Audioswitch blog post: https://www.twilio.com/blog/easily-manage-audio-devices-on-android-with-audioswitch
I hope this helps. Please let me know if you have any further questions or concerns about this.
Categories
- 83 All Categories
- 19 SIGNAL 2021
- 376 Product Discussions
- 7 Community - Announcements
- 2 Changelog
- 4 Forum UI Updates
- 8 Welcome Guide
- 6 Community - Events
- 2 Twilio Relay Developer Conference 2021 Mega Thread
- 1 External Community Events
- 25 Inspiration
- 17 Community - Other Discussions
- 1 Community- Twilio Startups