Sinch redirect call to loudspeaker android - android

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?

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();

Related

Android API for integrating audio calling into Android app

What API in Android is used to make reliable audio calls in custom app?
I see for example in WhatsApp, that it gets notification about incoming call (probably from Firebase?), and then acts like "real call" (you can see active call within Bluetooth headset interface, which you can accept, reject or hang up, and if someone calls you via classic voice call, it will be automatically hanged up as busy). I didn't found any documentation about this, and found only full-fledged SDKs.
When investigating Android features, it may help to look at the Android Open Source Project site: https://source.android.com/
What you are asking for appears to be 'Third Party Calling App':
https://source.android.com/devices/tech/connect/third-party-call-apps
That document even links to a page on the main Android Developer site should you wish to build a voice call app:
https://developer.android.com/guide/topics/connectivity/telecom/selfManaged

Twilio - how to open activity when calling web to phone

I have implemented the Twilio in my app and have made it so that web to web calls can be made and also web to phone calls. The only thing is that if I call Voice.call() with my user's phone number, it'll call him but the call will not open my activity on his device. The phone call UI will be the default decide's UI for incoming calls. If I, on the other hand, use the user's defined identity on his device, it'll go nicely via my activity.
Any ideas on how I can make the web to phone call using a phone number and redirect the call via my activity?
I have been unable to find any documentation in this regard.
Cheers!
Twilio developer evangelist here.
It's not the job of the Twilio SDK to intercept phone calls made directly to the device. However, since Android is flexible enough to replace the default phone application, you can do this yourself.
I am not an Android developer however, but a quick search around lead me to this tutorial on using a BroadcastReceiver to run your own code when an incoming phone call occurs. This StackOverflow answer might help you get started too.
Hope that helps.

RTSP/TRMP Video call Applicaton ringing indicator android

I am developing an Android application for video calling using RTSP/TRMP and LibStreaming. When i initiate a call from my app, i cant able to understand thether the other end is ringing / attend my call.
I would like to know how to set a ringback tone for an outgoing call. I need to play it till the other user attend the call or reject the call
For video calling, you can use WebRTC. its good library
you can check demo
Using RTSP, it will difficulty for you. if you want one way live steaming then RTSP is fine

Skype Call Listener For Android

I'm implementing a streaming radio application on android . The stream must stop when a call comes to the phone or a call is in progress .I have implemented for normal calls (phone calls) but cannot find a proper solution for VOIP calls.If possible I want it to implement it to Viber calls also . Please help !
I think you should listen and monitor ports that use these protocols..
http://en.wikipedia.org/wiki/Voice_over_IP#Protocols

Stoping other services like receving call and media player when my application opens?

When i open my application , i should not receive any phone call or sms i should stop the media player also. can any one tel me is there any API is available to disable and enable them again once after my application ends.please help me..
Thanks
RAM
It is impossible to block the phone call as referring to this article.
For intercepting coming sms, you may be interested in that thread. Apparently there is a way to do that, but not a clean one.

Categories

Resources