Kotlin

Adding the Android SDK (Kotlin DSL)

The app uses Maven to load the Android SDK:

  1. Update your settings.gradle file including mavenCentral() repository if it doesn't exists already:

or if you are using an older project setup, update your build.gradle file from your project root. Add mavenCentral() inside the repositories block like this:

  1. Modify your module-level build.gradle.kts (typically app/build.gradle.kts)

Add the SDK dependency:

  1. Sync your project.

After updating your build.gradle.kts files, sync your project in Android Studio to download the Vonage SDK and apply the configuration.

Custom audio driver

Learn how to use a custom audio driver to customize publisher and subscriber stream audio. You will use the custom audio driver when you want to start and stop the audio play your own audio file, and do anything outside the default behavior of live video chat provided by the SDK.

Available on:
Kotlin Swift
Steps
1
Introduction
2
Getting Started
3
Creating a new project
4
Adding the Android SDK
5
Setting up authentication
6
Requesting permissions
7
Adding a custom audio driver
8
Capturing audio to be used by a publisher
9
Adding a custom audio renderer
10
Running the app
11
Conclusion