Kotlin
Enable Picture-in-Picture on Your Activity
On the activity that hosts the video call, set PiP and resize attributes and handle configuration changes so the activity is not recreated when entering PiP:
| Attribute | Purpose |
|---|---|
supportsPictureInPicture | Declares that this activity may enter PiP |
resizeableActivity | Required for multi-window / PiP on many devices |
configChanges | Avoids destroying the activity on size/orientation changes in PiP |
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