# Unable to show host/client video in Zoom IOS custom UI application

**URL:** <https://devforum.zoom.us/t/unable-to-show-host-client-video-in-zoom-ios-custom-ui-application/46308>\
**Category:** iOS\
**Created:** [March 23, 2021, 8:47am UTC](https://devforum.zoom.us/t/unable-to-show-host-client-video-in-zoom-ios-custom-ui-application/46308 "2021-03-23T08:47:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rssuresh192](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@rssuresh192](https://devforum.zoom.us/u/rssuresh192)\
**Post date:** [March 23, 2021, 8:47am UTC](https://devforum.zoom.us/t/unable-to-show-host-client-video-in-zoom-ios-custom-ui-application/46308/1 "2021-03-23T08:47:09Z")

</div>

We tried to display host/client video in our application using the interface “MobileRTCVideoView”. But we are unable to achieve it

Below are the findings while using Zoom IOS SDK API’s,

The interface “MobileRTCVideoView::showAttendeeVideoWithUserID:()” is returning “FALSE”.  
The interface MobileRTCMeetingService:: getUserVideoSize:()  
is returning the client/host video size is “0” (both width and height).

And we have confirmed that user is sending Video by using the interface “MobileRTCMeetingService ::isUserVideoSending:()” This interface is returning “YES ”. So, the host/client is sending video but “MobileRTCVideoView” is unable to show video.

IOS SDK Version : 5.2.42037.1112

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 23, 2021, 8:24pm UTC](https://devforum.zoom.us/t/unable-to-show-host-client-video-in-zoom-ios-custom-ui-application/46308/2 "2021-03-23T20:24:32Z")

</div>

Hey @rssuresh192,

Thanks for using the dev forum!

showAttendeeVideo can return for a few different reasons:

The user ID is invalid  
The View was not properly configured  
This was called too early in the ViewController’s lifecycle

Would you mind sharing a simplified version of your ViewController so that I can help troubleshoot?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![rssuresh192](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@rssuresh192](https://devforum.zoom.us/u/rssuresh192)\
**Post date:** [March 26, 2021, 5:48am UTC](https://devforum.zoom.us/t/unable-to-show-host-client-video-in-zoom-ios-custom-ui-application/46308/3 "2021-03-26T05:48:16Z")

</div>

Hi Michael,  
Thank you for quick response.

Now the interface “MobileRTCVideoView::showAttendeeVideoWithUserID:()” is returning true. But the video is not shown on the screen.  
Still I am getting Host/Client video size is zero only.  
MobileRTCMeetingService:: getUserVideoSize:()  
is returning the client/host video size is “0” (both width and height).  
Any suggestion?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 29, 2021, 8:23pm UTC](https://devforum.zoom.us/t/unable-to-show-host-client-video-in-zoom-ios-custom-ui-application/46308/4 "2021-03-29T20:23:20Z")

</div>

Hey @rssuresh192,

Have you set the aspect mode for that view? I usually use “pan and scan”.

Thanks!  
Michael

---

<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 29, 2021, 6:23am UTC](https://devforum.zoom.us/t/unable-to-show-host-client-video-in-zoom-ios-custom-ui-application/46308/5 "2021-04-29T06:23:46Z")

</div>

Closed on April 29, 2021, 6:23am UTC

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