localVideo()
Prebuilt
Custom
Returns whether the local camera is on. Returns false when the local video track state is 'off' or 'blocked', true otherwise, and null if not in a call.
Return value
Returnsboolean | null.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns whether the local camera is on.
localVideo()
Prebuilt
Custom
Returns whether the local camera is on. Returns false when the local video track state is 'off' or 'blocked', true otherwise, and null if not in a call.
boolean | null.
if (!call.localVideo()) {
console.log('Camera is off, blocked, or not in a call');
}