# Not able to see myself using MobileRTCVideoView in custom UI

**URL:** <https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282>\
**Category:** iOS\
**Tags:** faq-ios, faq\
**Created:** [August 23, 2021, 2:44pm UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282 "2021-08-23T14:44:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prabhjot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/prabhjot/32/19988_2.png) [@Prabhjot](https://devforum.zoom.us/u/Prabhjot)\
**Post date:** [August 23, 2021, 2:44pm UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/1 "2021-08-23T14:44:09Z")

</div>

**Description**  
Hi Team,

I am not able to see myself in small mini view. I am using MobileRTCVideoView for this however it is not working, all I can see is default user thumbnail image instead of myself. Though I can see host.

**Which iOS Meeting SDK version?**  
v5.7.1.644

Steps to reproduce the behavior:  
I am just launching the custom screen after entering the meeting id

 ![20881](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/2/42f6b9efb8957483f8b5a10863f8be4f96f4af1f.jpeg)

Code: showAttendeeVideoSuccessful is returning TRUE

**@IBOutlet**  **private**  **weak**  **var** zoomCustomVideoView: UIView!

**@IBOutlet**  **private**  **weak**  **var** zoomCustomMiniVideoView: UIView!

func loadUserVideo() {

```
    if let localUserID = MobileRTC.shared().getMeetingService()?.myselfUserID() {
        let hostVideoView = MobileRTCActiveVideoView(frame: zoomCustomVideoView.bounds)
        hostVideoView.setVideoAspect(MobileRTCVideoAspect_PanAndScan)
        zoomCustomVideoView.addSubview(hostVideoView)
        
        let attendeeVideoView = MobileRTCVideoView(frame: zoomCustomMiniVideoView.bounds)
        attendeeVideoView.setVideoAspect(MobileRTCVideoAspect_LetterBox)
        let showAttendeeVideoSuccessful = attendeeVideoView.showAttendeeVideo(withUserID: localUserID)
        if showAttendeeVideoSuccessful {
            print("Started showing local user video.")
        } else {
            print("Failed to show local user video.")
        }
        zoomCustomMiniVideoView.addSubview(attendeeVideoView)
    }
}

```

extension ViewController: MobileRTCMeetingServiceDelegate {

```
func onMeetingReady() {
    customZoomUIViewController?.loadUserVideo()
}

```

}

---

<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:** [August 23, 2021, 11:03pm UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/2 "2021-08-23T23:03:49Z")

</div>

Hey @Prabhjot,

Thanks for using the dev forum!

Are you using a simulator? The simulator does not have a camera stream. If you are using a real device, have you started the video?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Prabhjot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/prabhjot/32/19988_2.png) [@Prabhjot](https://devforum.zoom.us/u/Prabhjot)\
**Post date:** [August 24, 2021, 5:22am UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/3 "2021-08-24T05:22:16Z")

</div>

Hi @Michael_Condon

Thanks for reverting back

I am running the app on device and it does not ask me for camera permission at first, though I added the camera usage description in plist file. So, I forced ask for camera permission on videoDidLoad this way:

AVCaptureDevice.requestAccess(for: AVMediaType.video) { response in  
if response {  
//access granted  
} else {  
}  
}

After this app asked for a camera permission and I gave it. But still after giving camera permission I am not able to see participant video.

Do I need to do anything else or is there are method to start a video ?

---

<div class="post-metadata">

**Author:** ![Prabhjot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/prabhjot/32/19988_2.png) [@Prabhjot](https://devforum.zoom.us/u/Prabhjot)\
**Post date:** [August 24, 2021, 11:05am UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/4 "2021-08-24T11:05:17Z")

</div>

Hi @Michael_Condon

Finally I am able to get participant video. Thanks for the help.

I somehow manage to figure that I forget to add viewModel.meetingService?.muteMyVideo(false) in the code. After adding it, app worked fine.

I have few questions.

1. Does zoom still have two different SDKs for appstore and dev testing ? If yes could you pls share the links of both the SDKs.
2. If host video is muted then I can see default user thumbnail image (like the user thumbnail icon in the screenshot attached above). How can we hide that ? I am using MobileRTCActiveVideoView to show host video

---

<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:** [August 24, 2021, 7:47pm UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/5 "2021-08-24T19:47:35Z")

</div>

Hey @Prabhjot,

Awesome! I am glad you got it working 🙂

1. No, Zoom only provides one unified framework now.
2. You cannot change that thumbnail, however, you can check if their video is muted and if it is, you can hide the view.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Prabhjot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/prabhjot/32/19988_2.png) [@Prabhjot](https://devforum.zoom.us/u/Prabhjot)\
**Post date:** [August 27, 2021, 9:25am UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/6 "2021-08-27T09:25:07Z")

</div>

Thank you very much @Michael_Condon for prompt responses and clarifying my doubts.

I have one more question:

As I am using custom UI, can we get the video orientation when we launch our custom UI. i.e If the host video is in landscape I should be able to present custom UI view in landscape else in portrait. Can we achieve this ?

---

<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:** [August 27, 2021, 8:05pm UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/7 "2021-08-27T20:05:31Z")

</div>

Hey @Prabhjot,

I do not think you can check the orientation of the other device’s video stream unfortunately.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Prabhjot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/prabhjot/32/19988_2.png) [@Prabhjot](https://devforum.zoom.us/u/Prabhjot)\
**Post date:** [August 30, 2021, 5:20am UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/8 "2021-08-30T05:20:15Z")

</div>

okay. Thank you very much for your time @Michael_Condon . I think this should be added in zoom SDK in future releases. Anyhow, thanks again.

---

<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:** [August 30, 2021, 7:16pm UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/9 "2021-08-30T19:16:04Z")

</div>

Hey @Prabhjot,

You are welcome 🙂 I will let the team know.

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:** [September 30, 2021, 5:17am UTC](https://devforum.zoom.us/t/not-able-to-see-myself-using-mobilertcvideoview-in-custom-ui/56282/10 "2021-09-30T05:17:00Z")

</div>

Closed on September 30, 2021, 5:17am UTC

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