By default, Vonage Video's client-side library provides a standard video renderer for publishers and subscribers. However, you can override this by creating your own renderer using BaseVideoRenderer.
In this example, we'll create:
InvertedColorsVideoRenderer, that extends BaseVideoRendererMyRenderer, that implements GLSurfaceView.Renderer- A
GLSurfaceViewthat displays inverted color video usingOpenGL ESshaders
Estimated completion time: 25 mins
Want to skip this tutorial? You can jump straight to the completed Kotlin client code in the Basic-Video-Renderer-Kotlin 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 same Android sample app repo.
Requirements
To complete this tutorial, you’ll need:
- A valid Vonage Video API account — if you don’t have one, you can sign up for a free trial
- Android Studio
Basic video rendering
Learn how to use a custom video renderer in Kotlin to display a black-and-white version of a video stream using the Vonage Video Android SDK.