Kotlin

Getting Started

This sample shows how to host one publisher (your camera) and multiple remote participants in the same Vonage Video session.

This sample has three main parts working together:

  1. Session handling (MainActivity) — Creates the video session, sets up one local publisher, and creates a subscriber for each remote participant.

  2. UI state management — Uses mutableStateOf and mutableStateListOf to track UI changes, such as mic/camera on or off, whether a slot is occupied, and whether remote audio is enabled.

  3. Compose UI (SimpleMultipartyScreen) — Displays participants in a grid where each slot stays in the same position. The local video preview appears as a small overlay, and bottom controls let users switch cameras and toggle audio/video.

Estimated completion time: 25 mins

Want to skip this tutorial? You can jump straight to the completed Kotlin client code in the ScreenSharing folder of our Android sample app repo on GitHub. The repo includes a README with full documentation on how to run and explore the project. This tutorial focuses on the Kotlin version of the Android sample app. For the Java version, check the Previous sample app repo.

Requirements

To complete this tutorial, you’ll need:

Simple Multiparty

Learn how to use the Vonage Android SDK for a multi-party call. The application publishes audio/video from a device and can connect to multiple subscribers.

Available on:
Kotlin
Steps
1
Introduction
2
Getting Started
3
Creating a new project
4
Adding the Android SDK
5
Setting up authentication
6
Requesting permissions
7
Connect publish and show yourself
8
Multiparty subscribe to every remote stream
9
Host SDK views in AndroidView
10
Running the app
11
Conclusion