# Any Swift example or proper documentation on how to render video frames in swift for Video SDK?

**URL:** <https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079>\
**Category:** iOS\
**Created:** [December 6, 2021, 6:34am UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079 "2021-12-06T06:34:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagamuni](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nagamuni/32/33097_2.png) [@nagamuni](https://devforum.zoom.us/u/nagamuni)\
**Post date:** [December 6, 2021, 6:34am UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079/1 "2021-12-06T06:34:18Z")

</div>

**Description**  
There is no clear documentation on how to render a users and remote users video for Swift language. can i get any example for this?

**Which iOS Video SDK version?**  
Video SDK 1.1.2

---

<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:** [December 6, 2021, 10:24pm UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079/2 "2021-12-06T22:24:15Z")

</div>

Hi @nagamuni, thanks for using our SDK.

Apologies if it isn’t clear, but our Video SDK documentation does contain Swift code snippets. Above each code snippet, there is a toggle button that allows you to view either Objective-C or Swift. Instructions on how to render user video can be found [here](https://marketplace.zoom.us/docs/sdk/video/ios/essential/render-video).

Thanks!

---

<div class="post-metadata">

**Author:** ![nagamuni](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nagamuni/32/33097_2.png) [@nagamuni](https://devforum.zoom.us/u/nagamuni)\
**Post date:** [December 7, 2021, 9:54am UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079/3 "2021-12-07T09:54:46Z")

</div>

I have gone through that documentation before also Jon. I didn’t find that helpful.  
I just need to know how exactly zoom SDK gets video frames of local user to show it in the app.

I wanted to create my own UI for video conferencing. So in order to show the canvas, which accepts view but as the default view lacks ZoomVideoSDKUser and ZoomVideoSDKVideoType variables inside, I couldn’t figure out what i need to give for the Canvas.

canvas.subscribe(with: rendererView, andAspectMode: videoAspect)

Can you help me out with this please?

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:** [December 7, 2021, 10:57pm UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079/4 "2021-12-07T22:57:52Z")

</div>

Hi @nagamuni,

It looks like there is some outdated information in our documentation regarding the video type. I’ll work with our documentation team to get that removed. 🙂

Since the `ZoomVideoSDKVideoCanvas` is retrieved from an instance of `ZoomVideoSDKUser`, there is no need to indicate to which user’s video you would like to subscribe. You only need to provide a `UIView` on which you want the video to be rendered and a `ZoomVideoSDKVideoAspect` value. If you aren’t sure which aspect mode is right for you, that same page of our documentation does a pretty good job of differentiating between them.

Let me know if anything else is unclear and I’ll be happy to help.

Thanks!

---

<div class="post-metadata">

**Author:** ![nagamuni](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nagamuni/32/33097_2.png) [@nagamuni](https://devforum.zoom.us/u/nagamuni)\
**Post date:** [December 8, 2021, 5:03am UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079/5 "2021-12-08T05:03:03Z")

</div>

Thank you Jon! Will try to implement that.

---

<div class="post-metadata">

**Author:** ![nagamuni](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nagamuni/32/33097_2.png) [@nagamuni](https://devforum.zoom.us/u/nagamuni)\
**Post date:** [December 8, 2021, 5:08am UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079/6 "2021-12-08T05:08:24Z")

</div>

FYI…

Documentation is upto date only. Only the example project that comes with the Video SDK is outdated and it come only in objective C. It will be helpful if you can do something about that,

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:** [December 8, 2021, 7:47pm UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079/7 "2021-12-08T19:47:19Z")

</div>

Hi @nagamuni,

Just to confirm, you’re saying you’d like a Swift version of the existing SDK sample app, right? We do have plans to release that at some point, but the timeline is a little iffy at the moment. If there are any specific pieces of the existing sample app’s implementation that are difficult to understand in objc, I can provide a Swift translation for you. 🙂

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:** [January 8, 2022, 5:48am UTC](https://devforum.zoom.us/t/any-swift-example-or-proper-documentation-on-how-to-render-video-frames-in-swift-for-video-sdk/61079/8 "2022-01-08T05:48:12Z")

</div>

Closed on January 8, 2022, 5:48am UTC

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