localAudio()
Prebuilt
Custom
Returns whether the local microphone is on. Returns false when the local audio track state is 'off' or 'blocked', and true otherwise.
Return value
Returnsboolean.
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 microphone is on.
localAudio()
Prebuilt
Custom
Returns whether the local microphone is on. Returns false when the local audio track state is 'off' or 'blocked', and true otherwise.
boolean.
if (!call.localAudio()) {
console.log('Mic is off or blocked');
}