Skip to main content
useActiveVideo(params?): Object 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.

Params

optional An object with the following properties:

Return type

useActiveVideo() returns an object with the following propeties:

Sample code

Additional examples of usage for this custom hook can be found in the source code for the VCS SDK.