Kotlin
Adding the Android SDK (Kotlin DSL)
The app uses Maven to load the Android SDK:
- Update your
settings.gradlefile includingmavenCentral()repository if it doesn't exists already:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
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:
allprojects {
repositories {
google()
mavenCentral()
}
}
- Modify your module-level
build.gradle.kts(typicallyapp/build.gradle.kts)
Add the SDK dependency:
dependencies {
implementation("com.vonage:client-sdk-video:2.34.0")
}
- 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.
Picture in Picture
Learn how add Picture in Picture functionality to your app using Vonage Video SDK.
Available on:
Steps
1
Introduction2
Getting Started3
Creating a New Project4
Adding the Android SDK5
Setting Up Authentication6
Requesting Permissions7
Enable Picture-in-Picture on Your Activity8
Provide Containers for Video Views9
Launching Picture-in-Picture10
Managing PiP Mode Changes11
Running the App12
Conclusion