<img> element in HTML. The src prop sets the image value; however, the src must be made available in session_assets.
How to provide image sources
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.)
Props
Properties specific to the<Image> 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.