I want to set react-native-webrtc to phone speaker
now when i call my stream sound play in earphone
please help me
You can do it with this plugin: https://github.com/react-native-webrtc/react-native-incall-manager
can you explain more ?
Please read its documentation: https://github.com/react-native-webrtc/react-native-incall-manager#api
With “react-native-incall-manager”, we only can set “On” the “phone speaker” not (internal speaker). It means the sound like the voice call with speaker on. When you press the volume, the current audio mode is not the media volume. That’s why the quality of sound so pure and we need to control when users plugin the headphone too.
As I asked in another thread, there’s any way to change audio stream in “STREAM_MUSIC” instead of “STREAM_VOICE_CALL”
I believe there is, but you will need to modify the plugin yourself. IIRC something could be set on the audio track instance.
Any idea about how to solve this situation?