Closed ramunl closed 3 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);
Thanks for your clarification. The problem solved.
@Ben0421 Thx, close this issuse
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?