haiyangwu / mediasoup-demo-android

mediasoup android demo https://demo.mediasoup.org
97 stars 65 forks source link

Sound volume is too low. #19

Closed ramunl closed 3 years ago

ramunl commented 4 years ago

Tested on Xiami 5s (andr.8.0)

Video stream works great but the sound is almost not hearable. It works via phone speaker, how can I switch the audio output to the loud speaker?

Ben0421 commented 4 years ago

This is not specific to this demo but to Android. I recommend checking first if a wired headset is present. This will make the device use the speakerphone, regardless of whether a Bluetooth headset is plugged in or a wired headset is plugged in or in use.

this.audioManager = (AudioManager) applicationContext.getSystemService(Context.AUDIO_SERVICE); audioManager.setSpeakerphoneOn(true);

ramunl commented 4 years ago

Thanks for your clarification. The problem solved.

haiyangwu commented 3 years ago

@Ben0421 Thx, close this issuse