Streaming the Camera

Adding the User to the Mix

The other core aspect of working with VideoKit is building camera-based views and effects. For this, we need to stream the camera and display the camera stream to the user:

Creating a Camera Manager

The first step is to create a VideoKitCameraManager component:

There should only be at most one camera manager in a scene.

Creating a Camera View

Once a manager has been created, we need to display the camera preview. For this, we will create a UI raw image and attach a VideoKitCameraView:

Taking it for a Spin

Press play!

Last updated