1

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?

Tyson
  • 747
  • 2
  • 6
  • 18

1 Answers1

3

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();
crack_head
  • 236
  • 1
  • 11
  • The last time I visited Sinch docs I don't remember seeing an `AudioController` class. When was this class added? – Tyson Sep 12 '17 at 13:30
  • You can check the sample codes provided by Sinch. Also documentation of Sinch very much straight forward. http://download.sinch.com/docs/android/latest/reference/index.html?com/sinch/android/rtc/SinchClient.html – crack_head Sep 12 '17 at 14:38
  • This method is not woking at all. – Ravi Vaniya May 26 '20 at 11:48