Contains a set of convenient properties, including which video inputs are available and available metadata for them.
The various IDs referenced below are video slot source IDs. These are opaque identifiers, meaning the values won't be meaningful to the reader. You can pass them to the
src property of a
<Video> component to render the video feed as the source.
An object with the following properties:
|When enabled, screen share inputs will be sorted before camera inputs. This is useful when prioritizing screen shares in your layout, especially when all inputs are not included in the final stream.
useActiveVideo() returns an object with the following propeties:
|Currently active video source IDs.
|Currently active video source ids that are of type
|The first video source which has the
'dominant' flag set. In a video call context, the first video source with the
'dominant' flag is the active speaker. If none of the inputs are set as
'dominant', this will be
|A map of display names for each active video ID. Keys are video IDs, values are strings.
|A map of paused flags for each active video ID. Keys are video IDs, values are booleans.
|A count that indicates how many video inputs the embedding host can support. This number represents the number of simultaneous participant video connections the cloud server running the VCS composition can support. (E.g. 20 video connections.)