This demo demonstrates how to handle quality issues alerts of Voximplant Android SDK. The application supports audio/video and conference calls between this Android app and other apps that use any Voximplant SDK. Based on MVP architectural pattern.
The application is able to:
- listen to quality issues
- log in to the Voximplant Cloud
- make an audio/video and conference call
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:
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:
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
VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
const newCall = VoxEngine.callUserDirect(
e.call,
e.destination,
e.callerid,
e.displayName,
null
);
VoxEngine.easyProcess(e.call, newCall, ()=>{}, true);
});
-
Clone this repo
-
Select quality_issues_demo and build the project using Android Studio
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, set checkbox to true if you want to make conference and press "Call" button to make a call.
See the following files for code details:
Quality Issues with current status are listed at the bottom and also logged to the text view on the middle of the screen.See the following files for code details:
Hold, change video sending or switch camera during a call from options menu. Tap on a video view to enlarge or decrease it.See the following classes for code details: