Skip to content

Latest commit

 

History

History

videocall

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Voximplant Video Call Demo (Android)

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.

Features

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)

Android 9

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)

Android 10

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:

Install the app

From the source code

  1. Clone this repository
  2. Select VideoCall and build the project using Android Studio

Download the application build

Use the invite link to get access the latest builds and subscribe for the application updates.

⚠️    Please consider that you need to set up a Voximplant account to make calls. Please follow the instructions below.
⚠️    Push notifications require additional setup. If the application is built from the source code, set up push notifications. If the application was installed from the invite link, push notifications cannot be configured.

Getting started

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

Automatic

We've implemented a special template to enable you to quickly use the demo – just install SDK tutorial from our marketplace:

Manual

You can set up it manually using our quickstart guide and tutorials

VoxEngine scenario example:

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

Usage

User login

Log in using:

See the following files for code details:

Make or receive calls

Enter a Voximplant user name to the input field and press "Call" button to make a call.

See the following files for code details:

Call controls

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:

Useful links

  1. Quickstart
  2. Voximplant Android SDK reference
  3. Using Voximplant Android SDK
  4. HowTo's
  5. Push Notifications Tutorial

Have a question