Kotlin

Running the app

Now that your code is complete, you can run the app in the Android Studio emulator. This will create a simulated publisher video — since the emulator cannot access your webcam, the publisher video will display an animated graphic instead of your camera feed.

To add a second publisher (which will display as a subscriber in your emulator), either run the app a second time in a connected Android device or use the Vonage Video Playground to connect to the session in a supported web browser by following the steps below:

  1. Go to Vonage Video Playground (must be logged into your Account)
  2. Select the Join existing session tab
  3. Copy the session ID you used in your MainActivity.kt file and paste it in Session ID input field
  4. Click Join Session
  5. On the next screen, click Connect, then click Publish Stream
  6. You can adjust the Publisher options (not required), then click Continue to connect and begin publishing and subscribing

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