How to implement voice and video calls in my apps

Asked

Viewed 1,131 times

3

I would like to know how I can implement video and voice calls (similar to Whatsapp) in my Apps written in JAVA for Android. Is there any open source SDK that makes this easy?

1 answer

2


It is not a simple job when it comes to audio/video calls (so much so that after a long time Whatsapp implemented video calls). You can search more about SIP protocol on android which is available on Android from level 9 API.

An example call would be this section that defines the action android.SipDemo.INCOMING_CALL, which will be used by an intention filter when the device receives a call. See:

Intent intent = new Intent();
intent.setAction("android.SipDemo.INCOMING_CALL");
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intent, Intent.FILL_IN_DATA);
mSipManager.open(mSipProfile, pendingIntent, null);

However, there are some platforms open sourcing I might as well help you with those resources. It would be interesting to analyze each one make a decision that best fits their needs.

Read more about the SIP protocol itself documentation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.