VideoKit
Search…
⌃K

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:
Creating a camera manager in your scene.
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:
Creating a UI camera view.

Taking it for a Spin

Press play!