Skip to main content
localAudio() Returns whether the local microphone is on. Returns false when the local audio track state is 'off' or 'blocked', and true otherwise.

Return value

Returns boolean.

Example

if (!call.localAudio()) {
  console.log('Mic is off or blocked');
}

See also