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

Return value

Returns boolean | null.

Example

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

See also