# Screen Share Video Lagging Even with enableOptimizeForSharedVideo Enabled

**URL:** <https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525>\
**Category:** Web\
**Created:** [November 5, 2025, 7:53am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525 "2025-11-05T07:53:04Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [November 5, 2025, 7:53am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/1 "2025-11-05T07:53:04Z")

</div>

When I share my screen and enable video optimization using the `enableOptimizeForSharedVideo` function, I notice that the video sometimes still appears **laggy** for other participants.

I’m not sure why this happens — would like to know if there’s anything I can do or adjust to improve the video smoothness during screen sharing.

---

<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:** [November 5, 2025, 9:06am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/2 "2025-11-05T09:06:20Z")

</div>

Hey @devtesting492

Thanks for your feedback.

Could you share some problematic session IDs with us for troubleshooting purposes?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [November 5, 2025, 10:16am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/3 "2025-11-05T10:16:18Z")

</div>

Hi @vic.yang

Here are the session IDs — really appreciate your help in taking a look at these:

- NHXyHb2lSYWR9hmnHpZXyA==
- deZPL3XPQGurfXi5YYprOA==
- hFD4Wz2UTwixCshpgVzSMw==

---

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [November 5, 2025, 4:41pm UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/4 "2025-11-05T16:41:25Z")

</div>

Hi @vic.yang, I’d like to know if there’s anything I can do to make screen sharing smoother when video optimization is enabled, as I’ll be sharing non-static content like YouTube videos and games.

---

<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:** [November 6, 2025, 2:11am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/5 "2025-11-06T02:11:51Z")

</div>

Hey @devtesting492

> - NHXyHb2lSYWR9hmnHpZXyA==
> - deZPL3XPQGurfXi5YYprOA==
> - hFD4Wz2UTwixCshpgVzSMw==

After analyzing the logs, we found that this issue may be related to one of our technical limitations.

When the share privilege is set to 3 (`MultipleShare` – the default value), enabling optimized shared video is not supported. This is because `MultipleShare` allows multiple users to share simultaneously, making the optimization unable to function properly.

To enable it, you can first call `stream.setSharePrivilege(2)` to allow only one user to share the screen at a time, and then call `stream.enableOptimizeForSharedVideo(true)` to turn it on.

> **[Stream | Zoom Video SDK for Web - 2.3.0](https://marketplacefront.zoom.us/sdk/custom/web/modules/ZoomVideo.Stream.html#setSharePrivilege)**
>
> Documentation for Zoom Video SDK for Web - 2.3.0

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [November 6, 2025, 2:25am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/6 "2025-11-06T02:25:55Z")

</div>

Hi @vic.yang

Thanks for looking into it. I followed the documentation and set `SharePrivilege` to `0`, as I didn’t see any mention of `2`. Could you please confirm whether it should be `0` or `2`?

 ![Screenshot 2025-11-06 at 10.24.21 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/61cc9af2df1d198151e5f2a335652bcb5ad2245a.png)

---

<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:** [November 6, 2025, 3:19am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/7 "2025-11-06T03:19:30Z")

</div>

Hey @devtesting492

Sorry for the mistake, it’s `0` instead of `2`.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [November 6, 2025, 4:07am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/8 "2025-11-06T04:07:13Z")

</div>

Hi @vic.yang

I did set `SharePrivilege` to `0` before calling `stream.enableOptimizeForSharedVideo(true)`, but I still notice the shared video can be quite laggy at times.

Is there anything we can do to make it smoother?

---

<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:** [November 6, 2025, 5:14am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/9 "2025-11-06T05:14:38Z")

</div>

Hey @devtesting492

Could you share the latest session IDs with us for troubleshooting ?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [November 6, 2025, 8:58am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/10 "2025-11-06T08:58:42Z")

</div>

Hi @vic.yang

You can check this session IDs:

- A+NUoPuJSHGm9tWwkd5gwA==
- uVaYdu0xQqm9UKVC9LzO4Q==

The video quality is fine at first, but after a while it drops — becoming laggy and blurry — before returning to normal again.

---

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [November 6, 2025, 10:02am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/11 "2025-11-06T10:02:48Z")

</div>

Hi @vic.yang

I have a question. When I share a Window and enable **“Also share system audio”** , I get this error when I turn on my mic:

```auto
{
    "type": "INVALID_OPERATION",
    "reason": "Cannot unmute audio during sharing with audio",
    "errorCode": 6014
}

```

Is this the expected behavior?

---

<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:** [November 6, 2025, 10:14am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/12 "2025-11-06T10:14:53Z")

</div>

Hi @devtesting492

It’s by design.

When sharing system audio, the microphone audio is not muted, which can lead to audio echo issues.

In Video SDK Web, it provides the `stream.isSupportMicrophoneAndShareAudioSimultaneously()` method and the `share-audio-change` event. In the callback of this event, you can use the former method to determine whether the microphone audio is available.

> **[Stream | Zoom Video SDK for Web - 2.3.0](https://marketplacefront.zoom.us/sdk/custom/web/modules/ZoomVideo.Stream.html#isSupportMicrophoneAndShareAudioSimultaneously)**
>
> Documentation for Zoom Video SDK for Web - 2.3.0

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [November 7, 2025, 2:04am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/13 "2025-11-07T02:04:02Z")

</div>

Hi @vic.yang

I’d really appreciate your help in checking these sessions.

Please let me know if there’s any way to make the optimization more stable.

---

<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:** [November 7, 2025, 2:28am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/14 "2025-11-07T02:28:31Z")

</div>

Hey @devtesting492

> - A+NUoPuJSHGm9tWwkd5gwA==
> - uVaYdu0xQqm9UKVC9LzO4Q==

We are analyzing the logs and will keep you updated if we find the cause.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![devtesting492](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devtesting492/32/65966_2.png) [@devtesting492](https://devforum.zoom.us/u/devtesting492)\
**Post date:** [December 1, 2025, 2:20am UTC](https://devforum.zoom.us/t/screen-share-video-lagging-even-with-enableoptimizeforsharedvideo-enabled/138525/15 "2025-12-01T02:20:36Z")

</div>

Hi @vic.yang

Any updates on this?
