Camera Controls - Prebuilt
Webcam control permissions allow the host to enable/disable their webcam along with other participants webcams as well as set default settings when the meeting starts.
How it works ?
-
While
participantCanToggleSelfWebcam
value is set totrue
, you can enable/disable your own webcam as display in below image. -
While
participantCanToggleSelfWebcam
value is set tofalse
, the below webcam button will not appear.
Camera Attributes
webcamEnabled
: Default webcam setting for meeting joinee, true enables webcam & false disable webcam.participantCanToggleSelfWebcam
: Allow participant to enable/disable their own webcam.
index.html
const config = {
// ...
webcamEnabled: true,
participantCanToggleSelfWebcam: true,
// ...
};
Set webcam resolution
If you want to restrict the webcam
stream quality of any participant that is being uploaded to server, you can use maxResolution
.
How it works ?
maxResolution
can be set tosd
orhd
. If it issd
then the upload resolution will be360p
else if it is set tohd
then it will be720p
. By default it is set tosd
.
Max resolution Attributes
index.html
const config = {
// ...
maxResolution: "sd", // "sd" or "hd"
// ...
};
Got a Question? Ask us on discord