# How to pin video in custom UI

**URL:** <https://devforum.zoom.us/t/how-to-pin-video-in-custom-ui/41835>\
**Category:** macOS\
**Created:** [January 28, 2021, 3:35pm UTC](https://devforum.zoom.us/t/how-to-pin-video-in-custom-ui/41835 "2021-01-28T15:35:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [January 28, 2021, 3:35pm UTC](https://devforum.zoom.us/t/how-to-pin-video-in-custom-ui/41835/1 "2021-01-28T15:35:45Z")

</div>

Hello!

Does Zoom SDK have ability to pin the particular video in custom UI flow?

When I tried to do it by

`meetingActionController.pinVideo(toSecondView: userId)`

I got an error **Unsupported Feature**

Thank you!

---

<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:** [January 28, 2021, 6:10pm UTC](https://devforum.zoom.us/t/how-to-pin-video-in-custom-ui/41835/2 "2021-01-28T18:10:39Z")

</div>

Hi @anton.yereshchenko, thanks for the post.

When implementing a custom meeting UI, you are solely responsible for the appearance and behavior of the UI. For that reason, none of the SDK’s UI functions apply to your UI. In order to utilize this and other methods which impact the UI, you would need to use the default Zoom UI.

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [February 1, 2021, 3:11pm UTC](https://devforum.zoom.us/t/how-to-pin-video-in-custom-ui/41835/3 "2021-02-01T15:11:18Z")

</div>

Hi @jon.zoom, thank you for the answer.

Ok, I see. The reason why I asked it is video quality.  
I mean if the user pin a speaker in Zoom App - the video quality will become better, won’t?

Is there a way to increase the quality for particular user using custom UI?

Thanks!

---

<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:** [February 1, 2021, 10:10pm UTC](https://devforum.zoom.us/t/how-to-pin-video-in-custom-ui/41835/4 "2021-02-01T22:10:24Z")

</div>

Hi @anton.yereshchenko,

> I mean if the user pin a speaker in Zoom App - the video quality will become better, won’t?

There are many factors that can impact the video quality you receive from other users in a meeting. Possibly the most significant effect is made by the network quality of the sending and receiving devices. Additionally, the camera device being used and meeting settings may impose additional restrictions.

> Is there a way to increase the quality for particular user using custom UI?

If HD video is possible for your meeting (see [this article](https://support.zoom.us/hc/en-us/articles/207347086-Group-HD) for more info), you can call [`enableCatchHDVideo`](https://marketplacefront.zoom.us/sdk/meeting/macos/interface_zoom_s_d_k_video_setting.html#a047690731a32c121f3b17bfb164b100d) to enable it.

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [February 5, 2021, 3:29pm UTC](https://devforum.zoom.us/t/how-to-pin-video-in-custom-ui/41835/5 "2021-02-05T15:29:55Z")

</div>

Hi @jon.zoom thanks for the answer.

As I understand `enableCatchHDVideo` will improve quality only for current camera, won’t?

We noticed that in Zoom client when we pin user or multiple users their video quality improves significantly. In our application we are using Zoom SDK with Custom UI and would like to achive similar result: we will control users’ containers on our side, but still would like to ask remote users programmatically via your API to improve their video quality similar to what happens when we use “Pin user”.

our main goal: to ask remote participant to send video in better quality, similar to behavior that we observe when we use “Pin user” in Zoom Client

Thanks!

---

<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:** [February 5, 2021, 6:23pm UTC](https://devforum.zoom.us/t/how-to-pin-video-in-custom-ui/41835/6 "2021-02-05T18:23:17Z")

</div>

Hi @anton.yereshchenko,

> As I understand enableCatchHDVideo will improve quality only for current camera, won’t?

Your understanding is correct. You cannot remotely control the input quality of other users, only the local user. Allowing access to the camera controls of a remote user would create many privacy and security issues.

> We noticed that in Zoom client when we pin user or multiple users their video quality improves significantly

That’s interesting. Are you sure that the actual video resolution has increased? Or is it just the size of their individual video views getting bigger?

If it’s the latter, in a custom UI you would be solely responsible for managing the appearance of the `ZoomSDKVideoElement`s in your UI. The [`resize`](https://marketplacefront.zoom.us/sdk/meeting/macos/interface_zoom_s_d_k_video_element.html#a58705ab54af5ad584796e38822bb2e20) method may also prove useful if you need to change the size of an element during a meeting.

Thanks!
