VCS Image component
Renders an image. Similar to
<img> element in HTML. The
src prop sets the image value; however, the
src must be made available in
An image source can be provided in one of three ways:
- A composition asset: These are part of the composition itself.
- For example, the baseline composition includes a small user icon that's used as the placeholder for a participant whose video is off or missing.
- A session asset: These are specified when you start a streaming session on Daily.
- These images are downloaded and validated before any VCS rendering happens, so there's a guarantee that the image is never missing (assuming the session asset URL you provided was valid, of course).
- Session assets are passed via the
session_assetsproperty in the live streaming or recording method being used. See the Session assets page for more information.
- A dynamic asset: These can be specified during a streaming session on Daily.
- Sometimes you don't have an image available before the start of the session. Dynamic assets let you pass image URLs via Daily's API at runtime. They are downloaded and validated in the background, and your VCS composition can use a hook to inspect the list of dynamic assets to determine when new content is available. (This API is not yet available.)
Properties specific to the
|An asset name within the default namespace. See above for ways that assets can be made available.|
|Determines how an imaine should be rendered within its layout frame. Available values: |
|An object defining transformations to be applied at the compositing stage. Supported properties: |
|An object of compositing-related properties. Supported properties: |
Properties available to all VCS components, including this one.
|A name of your choice for the component instance. Works just like the “id” property in HTML. Primarily useful for debugging.|
|This prop has a special meaning to the React runtime. When you render components inside an array (e.g. a list), each individual item in the array should have a different value for the key prop. React uses this internally to quickly compare the rendered array with its previous version.|
|An object of style. Each component class has its own supported style properties. For example, the |
|Allows you to hook into your rendered components into the VCS layout system. After the React render cycle completes, the layout system computes final layout frames (coordinates within the output viewport). You can guide the layout process using callback functions and data you provide using the layout prop. The first value of the array must be a layout function. The second (optional) value can be a data object containing param values, which is passed to the layout function when computing the layout. See Layout API for more details.|
style prop accepts an object that can have the following values set.
|Apply a rounded mask to the corners of the component.|