# Resize custom video element

**URL:** <https://devforum.zoom.us/t/resize-custom-video-element/46824>\
**Category:** macOS\
**Created:** [March 29, 2021, 9:43am UTC](https://devforum.zoom.us/t/resize-custom-video-element/46824 "2021-03-29T09:43:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard1/32/5472_2.png) [@richard1](https://devforum.zoom.us/u/richard1)\
**Post date:** [March 29, 2021, 9:43am UTC](https://devforum.zoom.us/t/resize-custom-video-element/46824/1 "2021-03-29T09:43:40Z")

</div>

Hello

Are you able to advise on the difference between resizing a custom video element using setFrame: on the view, and using the SDK’s resize: method on the videoElement - I am finding some weird results (especially with resolutions and retina displays) with both approachs so it would be good to understand the correct approach.

We need to be able to specify the size of the video element so that zoom feeds the video at the required resolution (be it 1080p or 720p) so it would be great to understand the method we should be using

Thanks

Richard

---

<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:** [March 29, 2021, 8:42pm UTC](https://devforum.zoom.us/t/resize-custom-video-element/46824/2 "2021-03-29T20:42:37Z")

</div>

Hi @richard1,

Generally speaking, you should be using the `resize` method to update the size for a preexisting element. Can you please elaborate on the behavior you are seeing when using this method so that we may investigate further?

Thanks!

---

<div class="post-metadata">

**Author:** ![richard1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard1/32/5472_2.png) [@richard1](https://devforum.zoom.us/u/richard1)\
**Post date:** [March 30, 2021, 7:58am UTC](https://devforum.zoom.us/t/resize-custom-video-element/46824/3 "2021-03-30T07:58:14Z")

</div>

Hello

Currently I’m simply resizing the parent view of the video element which generally seems to be successful but I’m interested to know whether calling resize: is likely to create different results or has benefits

I’ll do a few more tests and revert

Richard

---

<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:** [March 30, 2021, 8:54pm UTC](https://devforum.zoom.us/t/resize-custom-video-element/46824/4 "2021-03-30T20:54:04Z")

</div>

Hi @richard1,

Using the resize method is the officially supported way of doing this, so it will be easier for us to support your use case with that method. If you encounter any specific issues while using that method, please let me know so we can investigate.

Thanks!

---

<div class="post-metadata">

**Author:** ![richard1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard1/32/5472_2.png) [@richard1](https://devforum.zoom.us/u/richard1)\
**Post date:** [March 31, 2021, 3:42am UTC](https://devforum.zoom.us/t/resize-custom-video-element/46824/5 "2021-03-31T03:42:42Z")

</div>

Thanks Jon - testing that shall be my homework for today!

---

<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:** [March 31, 2021, 7:50pm UTC](https://devforum.zoom.us/t/resize-custom-video-element/46824/6 "2021-03-31T19:50:11Z")

</div>

Sounds good, hopefully everything continues to work properly after updating! 🤞

Thanks!

---

<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:** [May 1, 2021, 5:50am UTC](https://devforum.zoom.us/t/resize-custom-video-element/46824/7 "2021-05-01T05:50:19Z")

</div>

Closed on May 1, 2021, 5:50am UTC

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