# stopScreenshare()

Stops user's screenshare. The browser will stop publishing user's screen.

```javascript
sambaFrame.stopScreenshare();
```

**Sample use case**: \
Have a custom toolbar in your integration and want user to control screensharing from it.

{% hint style="info" %}
The related event is [screenshareStopped](https://docs.digitalsamba.com/reference/sdk/events/screensharestopped), if you want to be informed when a user stops screensharing.
{% endhint %}
