# How to optimize for video clip during screen sharing

**URL:** <https://devforum.zoom.us/t/how-to-optimize-for-video-clip-during-screen-sharing/54812>\
**Category:** macOS\
**Created:** [July 27, 2021, 9:25pm UTC](https://devforum.zoom.us/t/how-to-optimize-for-video-clip-during-screen-sharing/54812 "2021-07-27T21:25:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![santhoshr048](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santhoshr048/32/21588_2.png) [@santhoshr048](https://devforum.zoom.us/u/santhoshr048)\
**Post date:** [July 27, 2021, 9:25pm UTC](https://devforum.zoom.us/t/how-to-optimize-for-video-clip-during-screen-sharing/54812/1 "2021-07-27T21:25:02Z")

</div>

I know there’s a setting in the Zoom Client to “Optimize for video clip” when starting to share screen. Is there a similar setting in the macOS SDK? There’s a considerable lag when I play a video clip during screen sharing via the macOS SDK.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [July 28, 2021, 5:47pm UTC](https://devforum.zoom.us/t/how-to-optimize-for-video-clip-during-screen-sharing/54812/2 "2021-07-28T17:47:30Z")

</div>

Hi @santhoshr048, thanks for the post.

There are two options for enabling this setting when screen sharing through the macOS SDK.

If you are using the default UI, you can take the same approach as the Zoom client as outline [here](https://support.zoom.us/hc/en-us/articles/360051673592-Sharing-and-playing-a-video).

Alternatively, you can use the [`enableOptimizingScreenShareForVideoClip`](https://marketplacefront.zoom.us/sdk/meeting/macos/interface_zoom_s_d_k_a_s_controller.html#af2e80ced38b58c7cfd701e58ee20db8a) method to enable this setting programmatically.

Thanks!

---

<div class="post-metadata">

**Author:** ![santhoshr048](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/santhoshr048/32/21588_2.png) [@santhoshr048](https://devforum.zoom.us/u/santhoshr048)\
**Post date:** [July 28, 2021, 10:22pm UTC](https://devforum.zoom.us/t/how-to-optimize-for-video-clip-during-screen-sharing/54812/3 "2021-07-28T22:22:33Z")

</div>

Thanks @jon.zoom!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [July 29, 2021, 4:53pm UTC](https://devforum.zoom.us/t/how-to-optimize-for-video-clip-during-screen-sharing/54812/4 "2021-07-29T16:53:01Z")

</div>

You are very welcome, glad I could help! 🙂

---

<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:** [August 29, 2021, 2:53am UTC](https://devforum.zoom.us/t/how-to-optimize-for-video-clip-during-screen-sharing/54812/5 "2021-08-29T02:53:21Z")

</div>

Closed on August 29, 2021, 2:53am UTC

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