# Screenshare with Audio

**URL:** <https://openvidu.discourse.group/t/screenshare-with-audio/2862>\
**Category:** Request for enhancement\
**Created:** [March 27, 2021, 2:35am UTC](https://openvidu.discourse.group/t/screenshare-with-audio/2862 "2021-03-27T02:35:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garvan\_Doyle](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/garvan_doyle/32/800_2.png) [@Garvan\_Doyle](https://openvidu.discourse.group/u/Garvan_Doyle)\
**Post date:** [March 27, 2021, 2:35am UTC](https://openvidu.discourse.group/t/screenshare-with-audio/2862/1 "2021-03-27T02:35:20Z")

</div>

Seem’s that this should be an easy toggle from looking at this file: [openvidu/Screen-Capturing-Auto.js at 183f699eabb500444ea088ad80489abc009733af · OpenVidu/openvidu · GitHub](https://github.com/OpenVidu/openvidu/blob/183f699eabb500444ea088ad80489abc009733af/openvidu-browser/src/OpenViduInternal/ScreenSharing/Screen-Capturing-Auto.js)

When requesting screen share the constraints there needs to be an option to toggle {audio: true} ([Using the Screen Capture API - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API/Using_Screen_Capture))

It doesn’t seem you can get this to work without overwriting the file.

This would preferably be a simple addition to the publisherProperties.

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [March 27, 2021, 10:57am UTC](https://openvidu.discourse.group/t/screenshare-with-audio/2862/2 "2021-03-27T10:57:09Z")

</div>

Thank you for reporting.

We will take a look!
