How to change ear speaker to loud in Angular

38 Views Asked by At

I am working on an Angular project in which users can make and receive calls. I am using Agora for audio-video calls, and it's working fine. I have added functions to toggle the microphone and camera, and they are working as expected. Now, for mobile users or those who open my link in a mobile browser, I want to add a toggle speaker function to switch between the ear speaker and loudspeaker. However, I am unable to find a useful answer.

I want to add toggle speaker function in which I can can to ear speaker to loud speaker in Angular.

I tried to search for it on Google but all the answers are for different scenario.

0

There are 0 best solutions below