# Camera upside down on old iPad Air

**URL:** <https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354>\
**Category:** iOS\
**Created:** [January 12, 2021, 2:12pm UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354 "2021-01-12T14:12:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [January 12, 2021, 2:12pm UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354/1 "2021-01-12T14:12:57Z")

</div>

**Description**  
The camera video is upside down on an old iPad Air (iPad4,2) running iOS 12.4.9  
The issue is present only on this specific configuration, on other iPad devices running iOS 14 everything is working fine.

**Which version?**

iOS SDK version v5.2.42037.1112

**Smartphone (please complete the following information):**  
iPad Air (iPad4,2) running iOS 12.4.9

---

<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:** [January 13, 2021, 12:13am UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354/2 "2021-01-13T00:13:07Z")

</div>

Hey @criva,

Thanks for using the dev forum!

Are you using a custom meeting UI or the default meeting UI?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [January 13, 2021, 11:13am UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354/3 "2021-01-13T11:13:26Z")

</div>

Hi

I am using custom meeting UI

---

<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:** [January 14, 2021, 5:47pm UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354/4 "2021-01-14T17:47:41Z")

</div>

Hey @criva,

Can you provide your code for showing the attendee video views?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [January 15, 2021, 12:37pm UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354/5 "2021-01-15T12:37:34Z")

</div>

I using the following class

//--------  
class AttendeeVideoView : UIView {

```
public var userId: UInt? = nil

override init(frame: CGRect) {
  super.init(frame: frame)
  setupView()
}

lazy var videoView : MobileRTCVideoView = {
    let _videoView = MobileRTCVideoView.init(frame: self.bounds)
    if let userId = userId {
        _videoView.showAttendeeVideo(withUserID: userId)
        _videoView.setVideoAspect(MobileRTCVideoAspect_PanAndScan)
    }
    return _videoView
}()

private func setupView() {
    self.backgroundColor = UIColor.black
    self.addSubview(self.videoView)
}

func updateFrame() {
    self.videoView.frame = CGRect(x: 0, y: 0, width: self.bounds.size.width, height: self.bounds.size.height)
}

func showAttendeeVideo(userId: UInt) {
    if self.userId != nil && self.userId == userId {
        return;
    }
    self.userId = userId
    videoView.isHidden = false
    videoView.showAttendeeVideo(withUserID: userId)
    videoView.setVideoAspect(MobileRTCVideoAspect_PanAndScan)
}

func stopAttendeeVideo() {
    videoView.stopAttendeeVideo()
    videoView.isHidden = true
    userId = nil
}

```

}  
//----------

Externally I call “showAttendeeVideo” passing the userId and “stopAttendeeVideo” for start and stop video. “updateFrame” is called when the AttendeeVideoView has been resized.

---

<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:** [January 19, 2021, 9:26pm UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354/6 "2021-01-19T21:26:50Z")

</div>

Hey @criva,

That is very interesting. I am curious if the video stream starts at a place in the view’s lifecycle where the orientation may not be known? Can you reproduce this on that device, then email the SDK logs to [developersupport@zoom.us](mailto:developersupport@zoom.us)? Please provide a link to this post and mention my name.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![criva](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@criva](https://devforum.zoom.us/u/criva)\
**Post date:** [January 20, 2021, 11:12am UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354/7 "2021-01-20T11:12:38Z")

</div>

Unfortunately, it’s not that easy

The problem does not occur on a development device (but on a customer device). I don’t own this specific iPad model.

… and the simulators are not helping me in any way for debugging these kinds of camera issues.

---

<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:** [January 20, 2021, 11:00pm UTC](https://devforum.zoom.us/t/camera-upside-down-on-old-ipad-air/40354/8 "2021-01-20T23:00:38Z")

</div>

Hey @criva,

I understand, I also do not have this specific model. Normally we cannot investigate an issue that is specific to one device without being able to reproduce or without being able to inspect the logs. However, I will inform the engineers about this and see if there is some other way we can troubleshoot 🙂

Thanks!  
Michael
