Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 685 Bytes

useVideo.md

File metadata and controls

30 lines (20 loc) · 685 Bytes

useVideo

The useVideo hook gathers functions responsible for managing state of video transmission.

Members

Name Type Description
isVideo boolean Indicates video state of local user.
toggleVideo () => void Toggles video of local user.

Examples

React

Enable / disable video

const { toggleVideo } = useVideo();
...
<button onClick={toggleVideo}>...</button>

Use current state of video

const {isVideo} = useVideo()

<IconButton icon={isVideo ? "camera" : "cameraOff" }/>