# Audio not working while screen share in zoom video SDK Web

**URL:** <https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409>\
**Category:** Web\
**Created:** [January 24, 2024, 4:26am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409 "2024-01-24T04:26:38Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [January 24, 2024, 4:26am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/1 "2024-01-24T04:26:38Z")

</div>

**Description**  
We are using Zoom Video SDK Web.

Host is starting session from Google Chrome.

Participants also joined.

Host trying to share screen and trying to play a video.

The video is one of content in the same web page.

The audio of the video is not audible for participants.

**Which Web Video SDK version?**  
1.8.10

**Device (please complete the following information):**

- Device: IMAC
- OS: macOS Sonoma 14.2.1
- Browser: Chrome
- Browser Version: 120.0.6099.234 (Official Build) (arm64)

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [January 24, 2024, 9:05am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/2 "2024-01-24T09:05:33Z")

</div>

Hey @srikanth

Thanks for your feedback.

Are you using the Share ChromeTab panel when starting screen share? Have you selected the “Also share tab audio” option in the share selection window?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [January 24, 2024, 11:47am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/3 "2024-01-24T11:47:47Z")

</div>

> **[WhatsApp Image 2024-01-24 at 5.11.11 PM.jpeg](https://drive.google.com/file/d/1wEI_cuIZV0khZrE7RLNbA2vqWD44B-6z/view?usp=sharing)**
>
> Google Drive file.

We cannot see the current tab here to select. Even if we select entire screen, participants cant hear the audio of the video being shared by the presenter.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [January 25, 2024, 3:53am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/4 "2024-01-25T03:53:39Z")

</div>

Hey @srikanth

From the screenshot, it looks like you are using Chrome on macOS. Currently, sharing the entire system audio is not supported.

_Quoted from MDN’s documentation_

> On Windows and ChromeOS, the entire system audio can be captured when sharing an entire screen. On Linux and macOS, only the audio of a tab can be captured.

> **[MediaDevices: getDisplayMedia() method - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#browser_compatibility)**
>
> The getDisplayMedia() method of the MediaDevices interface prompts the user to select and
> grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [January 25, 2024, 5:39am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/5 "2024-01-25T05:39:24Z")

</div>

Hi, Our issue is when presenter wants to share current tab (Where our web application is opened), the presenter is unable to view current tab list, please refer to the screenshot. Also if we are sharing the entire screen, still audio is not playing for the viewers. It does not work either in Mac or Windows.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [January 26, 2024, 3:13am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/6 "2024-01-26T03:13:03Z")

</div>

Hey @srikanth

Are you trying to share the current tab instead of other Chrome tabs?

In the `stream.startShareScreen` function, we provide more options, and the `controls` option is suitable for this.

You can try this:

```javascript
stream.startShareScreen(video or canvas element,{controls:{preferCurrentTab:true}});

```

> **[ScreenShareOption | Zoom Video SDK for Web - 1.10.5](https://marketplacefront.zoom.us/sdk/custom/web/interfaces/ScreenShareOption.html#controls)**
>
> Documentation for Zoom Video SDK for Web - 1.10.5

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [January 26, 2024, 2:59pm UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/7 "2024-01-26T14:59:20Z")

</div>

Hi Vic,

Appreciate your response.

We have already implemented the your suggestion.

When we click on the “Share Screen” option, we can see “Tab 1” and “Tab 2,” but we are unable to view the current tab in Chrome. Please refer to the screenshot. The current tab contains our web app.

> **[Screenshot 2024-01-26 at 8.20.56 PM.png](https://drive.google.com/file/d/1TGmdiybnErC0Gn90y6XUBg5aTiyvOwsS/view)**
>
> Google Drive file.

Best Regards,  
Srikanth

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [January 29, 2024, 3:03am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/8 "2024-01-29T03:03:03Z")

</div>

Hey @srikanth

Thanks for letting me know the update.

If you need to share the current tab, you can try specifying the `{controls: {preferCurrentTab: true}}` option.

> **[ScreenShareOption | Zoom Video SDK for Web - 1.10.5](https://marketplacefront.zoom.us/sdk/custom/web/interfaces/ScreenShareOption.html#controls)**
>
> Documentation for Zoom Video SDK for Web - 1.10.5

> **[MediaDevices: getDisplayMedia() method - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#prefercurrenttab)**
>
> The getDisplayMedia() method of the MediaDevices interface prompts the user to select and
> grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [January 31, 2024, 10:27am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/9 "2024-01-31T10:27:31Z")

</div>

We have implemented as per the document you shared. It is not working. Shared the Code below.

**Code:**  
zoomStream.startShareScreen(document.querySelector(“#course-view-video”), {controls: {preferCurrentTab: true}})

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [February 1, 2024, 8:02am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/10 "2024-02-01T08:02:22Z")

</div>

Hey @srikanth

Thank you for letting us know the update.

> zoomStream.startShareScreen(document.querySelector(“#course-view-video”), {controls: {preferCurrentTab: true}})

We tested the sample app with Chrome, we can share the current tab.

Can you confirm the browser? This option has browser compatibility considerations.

> **[MediaDevices: getDisplayMedia() method - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#browser_compatibility)**
>
> The getDisplayMedia() method of the MediaDevices interface prompts the user to select and
> grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/b/9b4c4a035f2c073473340cdce61039f72abc2ad3.jpeg)

---

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [February 5, 2024, 12:37pm UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/11 "2024-02-05T12:37:55Z")

</div>

Hi,

Kindly find the attached video link for your reference. We have setup your demo project and still unable to find current tab.

> **[20240205180046604.mp4](https://drive.google.com/file/d/1_vtVjSk0DW7o9iMeQ_La_k0KWT9MwuTb/view)**
>
> Google Drive file.

Your help will greatly assist as in closure of a major ticket!

Best Regards,  
Srikanth

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [February 6, 2024, 10:20am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/12 "2024-02-06T10:20:25Z")

</div>

Hey @srikanth

Thank you for letting us know the update.

The sample app does not have logic for selecting the current tab. You can modify this line of code to support selecting the current tab.

> <https://github.com/zoom/videosdk-web-sample/blob/master/src/feature/video/components/video-footer.tsx#L226>

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [February 12, 2024, 6:46am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/13 "2024-02-12T06:46:28Z")

</div>

Hi @vic.yang ,

We’ve tried as per the previous instruction, and now we can share the current tab successfully.

Problem 1: However, the options for sharing _Window_ and _Entire Tab_ are not appearing.

Problem 2: When one person shares the current tab, other participants experience an echo in their own voices.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [February 15, 2024, 5:11am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/14 "2024-02-15T05:11:28Z")

</div>

Hey @srikanth

> Problem 1: However, the options for sharing _Window_ and _Entire Tab_ are not appearing.

This is the behavior of the browser, see the reference for details. [MediaDevices: getDisplayMedia() method - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#prefercurrenttab)

> Problem 2: When one person shares the current tab, other participants experience an echo in their own voices.

When you choose `preferCurrentTab`, did you check the ‘allow tab audio’ option?

If so, it’s possible that the other participants can experience an echo because their audio will play on the current page and then be played back to them via ‘share audio’. Due to the network transmission delay, it may feel like there is an echo.

We are also researching how to avoid this echo issue.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![petercox1002](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/petercox1002/32/49905_2.png) [@petercox1002](https://devforum.zoom.us/u/petercox1002)\
**Post date:** [February 15, 2024, 7:57pm UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/15 "2024-02-15T19:57:34Z")

</div>

Experiencing audio issues during screen share on Google Chrome? Consider checking compatibility with Web Video SDK version 1.8.10 and ensure all participants have updated browsers. Also, verifying audio settings and permissions may help resolve the issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 17, 2024, 5:57am UTC](https://devforum.zoom.us/t/audio-not-working-while-screen-share-in-zoom-video-sdk-web/102409/16 "2024-03-17T05:57:49Z")

</div>

Closed on March 17, 2024, 5:57am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
