# Where is macOS SDK's setVideoAspect

**URL:** <https://devforum.zoom.us/t/where-is-macos-sdks-setvideoaspect/46868>\
**Category:** macOS\
**Created:** [March 29, 2021, 9:08pm UTC](https://devforum.zoom.us/t/where-is-macos-sdks-setvideoaspect/46868 "2021-03-29T21:08:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lucas/32/8286_2.png) [@lucas](https://devforum.zoom.us/u/lucas)\
**Post date:** [March 29, 2021, 9:08pm UTC](https://devforum.zoom.us/t/where-is-macos-sdks-setvideoaspect/46868/1 "2021-03-29T21:08:16Z")

</div>

The iOS SDK has `MobileRTCVideoView.setVideoAspect` which I have found tremendously useful. I cannot find anything like it in the macOS SDK. Where is it?

---

<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, 10:03pm UTC](https://devforum.zoom.us/t/where-is-macos-sdks-setvideoaspect/46868/2 "2021-03-29T22:03:01Z")

</div>

Hi @lucas, thanks for the post.

There is not going to be a direct equivalent of this in the macOS SDK, as the custom UI works differently for each platform. Can you please describe your use case so that I can properly advise?

Thanks!

---

<div class="post-metadata">

**Author:** ![lucas](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lucas/32/8286_2.png) [@lucas](https://devforum.zoom.us/u/lucas)\
**Post date:** [March 29, 2021, 10:19pm UTC](https://devforum.zoom.us/t/where-is-macos-sdks-setvideoaspect/46868/3 "2021-03-29T22:19:42Z")

</div>

I use `setVideoAspect(MobileRTCVideoAspect_PanAndScan)`

So I want to get the same behavior in the macOS SDK. So if I present the video view as a 4:3 aspect but the original source is 16:9 it fills to hight, but if the original is 9:16 (vertical video from a phone) it will fill to width.

---

<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:52pm UTC](https://devforum.zoom.us/t/where-is-macos-sdks-setvideoaspect/46868/4 "2021-03-30T20:52:28Z")

</div>

Hi @lucas,

Thanks for clarifying. It does not appear that it is possible to implement the same behavior with the macOS SDK at this time due to the video width/height being unavailable. This should be coming in a future release. Apologies for any inconvenience this causes.

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:** [April 30, 2021, 6:52am UTC](https://devforum.zoom.us/t/where-is-macos-sdks-setvideoaspect/46868/5 "2021-04-30T06:52:42Z")

</div>

Closed on April 30, 2021, 6:52am UTC

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