We are trying to implement apirtc audio and video call in our ionic application.
Video call working fine for us. While trying to use audio call feature there is small issue that, when a call is connected its default sound is on 'loudspeaker' , we want to set it as 'earpiece' that is without loudspeaker.
Is there any solution that we can overcome this problem?
Thank you in advance!
We have checked official document of apirtc(https://apirtc.github.io/references/apirtc-js/) , but found nothing related to turn ON or OFF loudspeaker.
More than turning on / off certain output, I d have a look on how to change the stream's destination.
In general regarding ApiRTC Js implementation:
Nothing specific on Ionic though
Cheers,