ApiRTC / ApiRTC-cordova-demo

Example of how to use ApiRTC into mobile application
14 stars 8 forks source link

Audio should be played via earpiece by default #6

Closed orion3dgames closed 6 years ago

orion3dgames commented 6 years ago

Anyway to switch or toggle audio from earpiece to speaker?

PS: Btw, it's amazing how well your API is working, I'm get fluid video chat from OZ to CHINA, and vice versa.

francois-legoff commented 6 years ago

Hi, we use cordova plugin https://github.com/alongubkin/audiotoggle to switch between earpiece or speaker mode

orion3dgames commented 6 years ago

Thanks . I got it to work.

For anybody who is struggling to get it to work, you have to wait to the call is ongoing before toggling the sound.