I want to develop a voice call app for android. As the native android webRTC project is not maintained and lacks good documentation, I ended up using the peerjs library with webView. And it's working. But the problem is that webView doesn't provide any function to change the audio output stream. Audio is always played on the loudspeaker. I want it to be played on the earpiece. How can I achieve this?
Subscribe to get latest updates