setLocalVideo(enabled, options?)
Prebuilt
Custom
Requires join() or startCamera() to be called first.
Parameters
boolean
required
true to enable the camera, false to disable it.boolean
Controls, for this call only, whether the camera track is discarded when muting. When
true, the track is fully discarded — releasing the hardware and turning off the camera-in-use indicator light — even when the keepCamIndicatorLightOn call option is true. When false, the track is kept alive, keeping the hardware warm for a faster unmute (the camera indicator light stays on while muted).When omitted, the default behavior applies: the camera track is discarded on mute unless keepCamIndicatorLightOn: true is set. This option is not stored — it only affects this one mute.Return value
Returnsthis for chaining.