Skip to main content
Renders a video input, similar to <video> in HTML. To set the Video component src, pass the id of a video input.
Like with the Image component, video sources are selected using a src prop. However, video sources aren’t assets like they are with Images. Instead, they are external inputs described in an array of “video input slots”. You can think of the slots as representing video call participants or potentially any other type of video input (for example, in a video editing application the input slots could represent tracks simultaneously active on a timeline). There are two hooks available that let you discover what sources are available. useActiveVideo() gives you a list of video source IDs that you can pass directly to a Video component’s src prop. There is also useMediaInput(), which gives you access to the video input slots as a raw array.
Using useMediaInput() is rarely necessary for a typical application, as useActiveVideo() provides a filtered summary of available video sources.
Note that VCS optimizes for video performance and tries to keep video rendering on a video-specific fast path. This places some special restrictions on how you can mix video and graphics components. See the section Core concepts for more information.

Props

Properties specific to the <Video> component. Properties available to all VCS components, including this one.

style prop

The style prop accepts an object that can have the following values set.