Swift
Integrate with Vonage Video Manager
In your VonageVideoManager.swift, create an instance of the custom renderer and assign it to the publisher:
Key Points:
- Create a single instance of
CustomVideoRender(reuse it, don't create multiple instances) - Assign it to
publisher.videoRenderbefore publishing - Add the renderer's view as a subview of the publisher's view
- Use a
Wraphelper to displayUIViewin SwiftUI
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