Video Layer
- Last UpdatedApr 28, 2023
- 1 minute read
The following layer type can render input from a video source:
-
Video Renderer (type=video)
Attributes
-
VideoName: The videoName parameter accepts movie files and capture devices.
For capture devices, use the value _CamCapture + the device index. For example: _CamCapture0.
Code example
This is an example of a video renderer that takes input from the first video capture source.
<Layer name="SomeName" type="video">
<layer2DName value="MyVideoLayer"/>
<!-- name of the 2DLayer created by the code that will be used to render the video quad (this 2DLayer must not have already been created) -->
<videoName value="_CamCapture0"/>
<!-- movie name, or capture device id -->
<cropImage value="false"/>
<!-- will crop the source image when the viewport and the image aspect ratio are different -->
</Layer>