Skip to main content
localScreenAudio() Prebuilt Custom Returns whether the local screen share audio track is on. Returns false when the screen audio track state is 'off' or 'blocked', true otherwise, and null if not in a call.

Return value

Returns boolean | null.

Example

if (call.localScreenAudio()) {
  console.log('Screen audio is being shared');
}

See also