> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# stopScreenShare()

> Stops the local participant screen share.

`stopScreenShare()`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Stops the current screen share. Has no effect if no screen share is active.

If you provided a custom `mediaStream` when calling `startScreenShare()`, you are responsible for stopping the underlying tracks after calling this method.

## Return value

Returns `void`.

## Example

```javascript theme={null}
call.stopScreenShare();
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [startScreenShare()](/reference/daily-js/instance-methods/start-screen-share)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [local-screen-share-stopped](/reference/daily-js/events/media-events#local-screen-share-stopped)
    * [local-screen-share-started](/reference/daily-js/events/media-events#local-screen-share-started)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Screen sharing](/docs/daily-js/features/screen-sharing)
  </Card>
</CardGroup>
