Kotlin

Host SDK views in AndroidView

Vonage renders into normal Views. Create one FrameLayout per subscriber slot inside AndroidView, expose it with onSubscriberContainerReady(index, …), and attach subscriber.view from your session code when that slot is filled.

The sample wraps everything in BoxColumn: LazyVerticalGrid (weighted so it fills space above the bar) + ControlsRow below; the publisher is a second AndroidView on the Box, align(BottomEnd) for picture-in-picture. Each grid row uses SubscriberCell, which again uses AndroidView + FrameLayout for that slot’s video.

Remote tiles — two columns, one composable item per slot index (matches maxSubscribers and your subscriber arrays).

Local preview — same pattern: FrameLayout from factory, passed to onPublisherContainerReady.

Full layout: SimpleMultipartyScreen.kt.

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