Sinch redirect call to loudspeaker android

876 Views Asked by At

I have created a calling app for android using Sinch. However I would like give the user the ability to take part in the call via loudspeaker.

I went through the documentation for a bit and thought that Sinch could not help me this but this is actually and android thing.

So how can I redirect a call to the loudspeaker upon a button press?

1

There are 1 best solutions below

3
crack_head On

Instance of sinch client has method to get audio controller. There you can find method for setting speaker enable/disable.

For my case:

mSinchClient.getAudioController().enableSpeaker();