How can I change the target sound from phone call to media? whenever I watch a stream webrtc video get mixed with the content of the phone call.
You’ll probably need to write a small native module to change the mode in https://developer.android.com/reference/android/media/AudioManager
What about iOS?
Anyways I think the audio will be routed to the ear-speakers nonetheless, specifically by the react-native-webrtc library
You will need to change this in a native way, by using AVAudioSession. I think react-native-incall-manager can help ypu with this.