# No sound shared while sharing screen

**URL:** <https://devforum.zoom.us/t/no-sound-shared-while-sharing-screen/79817>\
**Category:** Windows\
**Created:** [December 6, 2022, 11:12am UTC](https://devforum.zoom.us/t/no-sound-shared-while-sharing-screen/79817 "2022-12-06T11:12:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjamin.gopp](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@benjamin.gopp](https://devforum.zoom.us/u/benjamin.gopp)\
**Post date:** [December 6, 2022, 11:12am UTC](https://devforum.zoom.us/t/no-sound-shared-while-sharing-screen/79817/1 "2022-12-06T11:12:05Z")

</div>

I’ve been trying now for serveral days in douzend combinations and sdk releases, without success.

When I share a custom window using StartAppShare(HWNDDotNet), I can see it but no sound is beeing played. I can hear it from my speakers but other participants don’t.

```
    public void ShareScreen(IntPtr hwnd)
    {
        var dotnetHwnd = new HWNDDotNet() { value = (uint)hwnd.ToInt64() };
        var error = _meetingShareController.StartAppShare(dotnetHwnd);
        _meetingShareController.EnableShareComputerSound(true);
    }

```

I thought, maybe the sound is blocked. So I unblocked the window, which had no effect.  
var error = \_meetingShareController.BlockWindowFromScreenshare(false, dotnetHwnd, false);

I even exposed the function EnableShareComputerSoundWhenSharing via c# wrapper. But don’t know what this function is meant for. Will it solve my problem? Apparently not.

OccasionallyI can hear sound, but only cracking and pulsing noise, no clear sound.

What I discovered is that the screen share dialog in the sdk is quite different from the one at the full client. My app is not beeing shown on the dialog, have a look:

screen share dialog using sdk

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/0/7025e06f47891a5155adb4fb01bcf63e66217bf3.png)

screen share dialog usind full client

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

Maybe the sdk behaves correctry, but why am I able to share a window handle, even I cannot chosse it manually?

So I’m realy puzzled

---

<div class="post-metadata">

**Author:** ![benjamin.gopp](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@benjamin.gopp](https://devforum.zoom.us/u/benjamin.gopp)\
**Post date:** [December 6, 2022, 3:01pm UTC](https://devforum.zoom.us/t/no-sound-shared-while-sharing-screen/79817/2 "2022-12-06T15:01:22Z")

</div>

So here is what I found out so far:  
EnableShareComputerSound works, BUT after the second time joining a meeting!

1. Join Meeting
2. Share Window then EnableShareComputerSound
3. Leave Meeting
4. Join Meeting and Share again

Now you can here sound from the shared window handle.

So is setting state not directly applied, but only stored and then applied at the next session?

Same issue happening with SetSharingToolbarVisibility(false). Which as been reported on this forum.

---

<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:** [January 6, 2023, 1:01am UTC](https://devforum.zoom.us/t/no-sound-shared-while-sharing-screen/79817/3 "2023-01-06T01:01:44Z")

</div>

Closed on January 6, 2023, 1:01am UTC

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