This application demonstrates multi-party voice and video built with Twilio’s Programmable Video Android SDK.
- Video conferencing with real-time video and audio
- Enable/disable camera
- Mute/unmute mic
- Switch between front and back camera
- Dominant speaker indicator
- Network quality indicator
Android Studio Version | Android API Version Min |
---|---|
3.5+ | 16 |
In order to run this application on an Android device or emulator, complete the following steps.
The app requires a back-end to generate Twilio access tokens. Follow the instructions below to deploy a serverless back-end using Twilio Functions.
- Install Twilio CLI.
- Run
twilio plugins:install @twilio-labs/plugin-rtc
. - Run
twilio rtc:apps:video:deploy --authentication passcode
. - The passcode that is output will be used later to sign in to the app.
The passcode will expire after one week. To generate a new passcode:
- Run
twilio rtc:apps:video:delete
. - Run
twilio rtc:apps:video:deploy --authentication passcode
.
Currently there are three product flavors for the application.
- Internal - The application intended for internal testing and QA at Twilio. This variant can only be built by Twilions.
- Twilio - The application intended for every day use at Twilio. This variant can only be built by Twilions.
- Community - The application intended for developers interested in using Programmable Video. This variant can be built by all developers.
The community flavor of the application is meant for developers who would like to work with the Video Android SDK in the context of a full-fledged application.
To get started with the community flavor follow these steps:
- Select the
communityDebug
Build Variant. - Run the application.
For each device:
- Run the app.
- Enter any unique name in the
Your name
field. - Enter the passcode from Deploy Twilio Access Token Server in the
Passcode
field. - Tap
Log in
. - Enter a room name.
- Tap
Join
.
The passcode will expire after one week. Follow the steps below to sign in with a new passcode.
- Generate a new passcode.
- In the app tap
Settings > Sign Out
. - Repeat the steps above.
- Android Studio - Right click and run unit tests on package
app/src/main/java/com/twilio/video/app
- Terminal -
./gradlew app:testInternalDebugUnitTest
UI tests require credentials that are only available to Twilio employees.
Twilio employees should follow these instructions for internal testing.
Apache 2.0 license. See LICENSE.txt for details.