# Disabling setLightAdaptionModel doesn't work

**URL:** <https://devforum.zoom.us/t/disabling-setlightadaptionmodel-doesnt-work/91059>\
**Category:** macOS\
**Created:** [June 29, 2023, 8:42am UTC](https://devforum.zoom.us/t/disabling-setlightadaptionmodel-doesnt-work/91059 "2023-06-29T08:42:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [June 29, 2023, 8:42am UTC](https://devforum.zoom.us/t/disabling-setlightadaptionmodel-doesnt-work/91059/1 "2023-06-29T08:42:41Z")

</div>

\_\_  
**Description**  
A clear and concise description of what the question is.

**Which macOS Meeting SDK version?**  
SDK v5.14.6.17875  
MacOS 13.4.1

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Turn on low light adjustment, using ‘Auto’ as parameter and the current level value from getLightAdaptionManualValue
2. Turn off low light adjustment, using ‘None’ as parameter and level = 0
3. Query current level and model with getLightAdaptionManualValue and getLightAdjustModel

These return ‘Auto’ and ‘0’

It should return ‘None’ and ‘0’

Additionally, I can see that the video is not altered while toggling this setting back and forth. The official Zoom app works - you can see the light adjustment being applied and unapplied while toggling the setting.

I can reset these settings by deleting settings for my app in the folder “/Users/myname/Library/Application Support”

Then I can see the video change from light-adjustment disabled to light-adjustment enabled. But there is no way to then disable this without deleting those settings again.

I do not receive any error codes

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

- Apple MacBook Pro (13-inch, M1)

**Additional context**

```auto
@IBAction func adjustForLowLightButtonAction(_ sender: NSButton) {
        
        let shouldAdjustForLowLight = sender.state == .on ? true : false
        
        guard let videoSettingService = ZoomSDK.shared().getSettingService().getVideoSetting() else {
            return
        }
        
        let currentLevel = videoSettingService.getLightAdaptionManualValue()
        
        var lightModel: ZoomSDKSettingVideoLightAdaptionModel
        
        var newLevel: Int32
        
        if shouldAdjustForLowLight {
            lightModel = ZoomSDKSettingVideoLightAdaptionModel_Auto
            newLevel = currentLevel
        } else {
            lightModel = ZoomSDKSettingVideoLightAdaptionModel_None
            newLevel = 0
        }
        
        let zError = videoSettingService.setLightAdaptionModel(lightModel,
                                                               lightAdaptionManualValue: newLevel)
        
        if (zError != ZoomSDKError_Success) {
            // No error
        }
        
        self.updateAdjustForLowLightButtons()
    }

```

---

<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:** [July 29, 2023, 6:43pm UTC](https://devforum.zoom.us/t/disabling-setlightadaptionmodel-doesnt-work/91059/2 "2023-07-29T18:43:00Z")

</div>

Closed on July 29, 2023, 6:43pm UTC

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