Skip to content

Files

Latest commit

0674500 · Feb 11, 2025

History

History

Basic-VoIP-Call-Java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 11, 2025
Feb 11, 2025
May 11, 2022
May 11, 2022
Feb 11, 2025
May 11, 2022
Feb 11, 2025
May 11, 2022
May 11, 2022
May 11, 2022

README.md

Basic VoIP Call

This app shows how to use the Android Connection Service for publisher and subscriber audio. The sample application uses the custom audio driver to publish white noise (a random audio signal) to its audio stream.

NoiseAudioDevice instance is passed into the AudioDeviceManager.setAudioDevice method:

AudioDeviceManager.setAudioDevice(noiseAudioDevice);

Configure the app

Open the OpenTokConfig file and configure the API_KEY, SESSION_ID, and TOKEN variables. You can obtain these values from your TokBox account.

Android Connection Service

OTConnectionService.java shows how to use the Android ConnectionService class for creating an app with calling features.

Register for Notification services

OTFireBaseMessagingService.java can be used as a reference to create notification services while the app is in background mode.

Further Reading