Swift
Understanding the Architecture
The custom video renderer consists of three main components that we will create in the next steps:
CustomVideoRender- Implements theOTVideoRenderprotocolCustomRenderView- AUIViewsubclass that processes and displays video frames. It will be embedded in SwiftUI with a simple wrapper.VonageVideoManager- Manages the Vonage session and connects the renderer to the publisher
OTPublisher → CustomVideoRender → CustomRenderView → Display
Basic video rendering
Learn how to use a custom video renderer in Swift to display a black-and-white version of a video stream using the Vonage Video iOS SDK.
Steps
1
Introduction2
Getting Started3
Creating a New Project4
Adding the Vonage Video SDK5
Setting Up Authentication6
Understanding the Architecture7
Create the Custom Render View8
Create the Custom Video Renderer9
Integrating with Vonage Video Manager10
Create UIView to SwiftUI Wrapper11
Display in SwiftUI12
How It Works13
Conclusion