# Enable Green Screen is broken

**URL:** <https://devforum.zoom.us/t/enable-green-screen-is-broken/59098>\
**Category:** iOS\
**Created:** [October 19, 2021, 6:31pm UTC](https://devforum.zoom.us/t/enable-green-screen-is-broken/59098 "2021-10-19T18:31:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven.otoole](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/steven.otoole/32/24587_2.png) [@steven.otoole](https://devforum.zoom.us/u/steven.otoole)\
**Post date:** [October 19, 2021, 6:31pm UTC](https://devforum.zoom.us/t/enable-green-screen-is-broken/59098/1 "2021-10-19T18:31:52Z")

</div>

**Description**  
I am always getting a 200 error when calling **enableGreenVB**. Sometimes it enables despite the 200. But it never disables. Here is the code:

```auto
    @objc private func switchValueDidChange(_ sender: UISwitch) {
        guard let service = MobileRTC.shared().getMeetingService(),
              service.isSupportSmartVirtualBG() else {
            assertionFailure("No service")
            return
        }
        let result = service.enableGreenVB(sender.isOn)
        if result != .success {
            os_log(.error, log: .zoomSdk, "enableGreenVB failed: %d", result.rawValue)
        }
    }

```

Here is my log:

```auto
2021-10-19 11:09:49.147935-0700 ClassForZoom[1789:1380899] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
2021-10-19 11:09:49.150286-0700 ClassForZoom[1789:1380899] [zoomSDK] enableGreenVB failed: 200

```

I think that probably the first entry, \_CFRunLoopError\_RunCalledWithInvalidMode, is coming from the Zoom SDK.

**Which iOS Meeting SDK version?**  
Tried with both

- iOS Meeting SDK v5.7.6
- Meeting SDK iOS v5.7.6.1080 (hotfix)

**Smartphone (please complete the following information):**

- Device: iPad Air 4th generation
- Device: iPad Mini 5th generation
- OS: iOS 15.0.1

---

<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:** [October 20, 2021, 7:23pm UTC](https://devforum.zoom.us/t/enable-green-screen-is-broken/59098/2 "2021-10-20T19:23:06Z")

</div>

Hey @steven.otoole,

Thanks for using the dev forum!

Hmm that is strange, can you reproduce the issue one more time and then obtain the SDK logs from that instance and send them to me at [developersupport@zoom.us](mailto:developersupport@zoom.us)? Please include a link to this post and mention my name.

Instructions for obtaining the logs can be found here:

> **[1. SDK Initialization - Mastering Zoom SDK - iOS - Meeting SDKs - Zoom...](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization)**
>
> SDK Initialization
> 
> 
> 
> Contents
> 
> 
> 
> The shared instance of MobileRT exposes a generic interface to allow SDK initialization, authentication, and configura...

Thanks!  
Michael

---

<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:** [October 28, 2021, 6:53pm UTC](https://devforum.zoom.us/t/enable-green-screen-is-broken/59098/3 "2021-10-28T18:53:01Z")

</div>

Hey @steven.otoole,

The logs indicate that the device used was a iPad Mini 5th gen, which does not support virtual backgrounds. Could you send over new logs from an iPad that does support virtual backgrounds?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![steven.otoole](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/steven.otoole/32/24587_2.png) [@steven.otoole](https://devforum.zoom.us/u/steven.otoole)\
**Post date:** [November 20, 2021, 6:42pm UTC](https://devforum.zoom.us/t/enable-green-screen-is-broken/59098/4 "2021-11-20T18:42:31Z")

</div>

Hi Michael –

Sorry, I was not aware that iPad Mini 5th gen does not support virtual backgrounds. I have been using virtual backgrounds on this device in both my app and the Zoom app without a problem – except for Green Screen.

Is this the best page for current [Virtual Background Support information](https://support.zoom.us/hc/en-us/articles/360043484511-System-requirements-for-Virtual-Background)?

It says:

- 5th and 6th generation 9.7" iPad
- 7th generation and higher 10.2” iPad
- iPad Pro

Does that mean no iPad Air support? My other device is an iPad Air.

* * *

I also have similar questions about Blurred backgrounds. Maybe the reason I cannot get them to work is that they are not supported.

Thanks for your help,  
– Steven

---

<div class="post-metadata">

**Author:** ![steven.otoole](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/steven.otoole/32/24587_2.png) [@steven.otoole](https://devforum.zoom.us/u/steven.otoole)\
**Post date:** [November 20, 2021, 7:30pm UTC](https://devforum.zoom.us/t/enable-green-screen-is-broken/59098/5 "2021-11-20T19:30:06Z")

</div>

Also, isSupportSmartVirtualBG or isSupportVirtualBG don’t seem to be working.

Here is what the iPad Mini reports:  
**iPad11,1; isSupportSmartVirtualBG: true; isSupportVirtualBG: true**

And here is my iPad Air  
**iPad13,1; isSupportSmartVirtualBG: true; isSupportVirtualBG: true**

* * *

Where:  
iPad11,1: iPad mini 5th Gen (WiFi)  
iPad13,1 : iPad Air 4th Gen (WiFi)

---

<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:** [December 1, 2021, 11:58pm UTC](https://devforum.zoom.us/t/enable-green-screen-is-broken/59098/6 "2021-12-01T23:58:24Z")

</div>

Hey @steven.otoole,

Let me check with the team on this one.

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:** [January 1, 2022, 9:58am UTC](https://devforum.zoom.us/t/enable-green-screen-is-broken/59098/7 "2022-01-01T09:58:42Z")

</div>

Closed on January 1, 2022, 9:58am UTC

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