# Safari screensharing bug

**URL:** <https://mediasoup.discourse.group/t/safari-screensharing-bug/879>\
**Category:** mediasoup-demo\
**Created:** [April 25, 2020, 3:53pm UTC](https://mediasoup.discourse.group/t/safari-screensharing-bug/879 "2020-04-25T15:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yarekc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/yarekc/32/55_2.png) [@yarekc](https://mediasoup.discourse.group/u/yarekc)\
**Post date:** [April 25, 2020, 3:53pm UTC](https://mediasoup.discourse.group/t/safari-screensharing-bug/879/1 "2020-04-25T15:53:20Z")

</div>

Tested on Safari 13.1  
There is a “small” bug on Safari 13.1

When clicking on screenSharing button, you got

**"getDisplaymedia must be called from a user gesture handler"**

And … you must click ONCE again to make it work (100% sure about it: tested on 3 Macs)

Works fine on chrome and FF

---

<div class="post-metadata">

**Author:** ![jmillan](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/jmillan/32/9_2.png) [@jmillan](https://mediasoup.discourse.group/u/jmillan)\
**Post date:** [April 26, 2020, 7:22am UTC](https://mediasoup.discourse.group/t/safari-screensharing-bug/879/2 "2020-04-26T07:22:46Z")

</div>

Tested, happens for the first time the screenshare button is clicked, the second time and onward works.

For some reason if the URL contains the query param `produce=false` the error does not show up; the permission dialog is shown right away. Of course the producer is not sent due to the fact that the sendTransport was not created.

Putting this as a low priority.
