This demo demonstrates basic video call and screen sharing functionality of the Voximplant Android SDK. The application supports video calls between this Android app and other apps that use any Voximplant SDK. Based on MVVM architectural pattern.
The application is able to:
- log in to the Voximplant Cloud
- make an video call
- receive an incoming call
- put a call on hold / take it off hold
- change an audio device (speaker, receiver, wired headset, bluetooth headset) during a call
- mute audio during a call
- enable/disable sending video
- share screen
- change video camera
- receive push notifications (requires additional setup)
- turn off the touch screen during calls when your ear is close to the screen (proximity sensor usage)
Because of the limited access to sensors in background in Android 9, we have made a foreground service to access microphone while app is in the background.
See the following file for code details:
- CallService (also used to work with proximity sensor)
Because of the restrictions on starting activities from the background in Android 10, we have made NotificationHelper class build and show full screen notifications
See the following file for code details:
- Clone this repository
- Select VideoCall and build the project using Android Studio
Use the invite link to get access the latest builds and subscribe for the application updates.
To get started, you'll need to register a free Voximplant developer account.
You'll need the following:
- Voximplant application
- two Voximplant users
- VoxEngine scenario
- routing setup
We've implemented a special template to enable you to quickly use the demo – just install SDK tutorial from our marketplace:
You can set up it manually using our quickstart guide and tutorials
require(Modules.PushService);
VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
const newCall = VoxEngine.callUserDirect(
e.call,
e.destination,
e.callerid,
e.displayName,
null
);
VoxEngine.easyProcess(e.call, newCall, ()=>{}, true);
});
Log in using:
- Voximplant user name in the format
[email protected]
- password
See the following files for code details:
Enter a Voximplant user name to the input field and press "Call" button to make a call.
See the following files for code details:
Ongoing call | Screen sharing | Audio settings |
Mute, hold, change an audio device or video sending during a call.
See the following files for code details:
- Quickstart
- Voximplant Android SDK reference
- Using Voximplant Android SDK
- HowTo's
- Push Notifications Tutorial
- contact us via
[email protected]
- create an issue
- join our developer community