# Camera is being activated right after the SDK initialization

**URL:** <https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525>\
**Category:** macOS\
**Created:** [December 16, 2021, 9:30am UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525 "2021-12-16T09:30:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcfly](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcfly](https://devforum.zoom.us/u/mcfly)\
**Post date:** [December 16, 2021, 9:30am UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/1 "2021-12-16T09:30:12Z")

</div>

**Description**  
After updating to the SDK to 5.7.6.1340 we have found that right after the SDK is being successfully initialized, the Facetime camera turns on. This happens even before the user logs in. This seems to be a bit odd. Previous SDK version did activate the camera only when the user started a meeting.  
Is this an intended behavior now or will this be fixed?

**Which macOS Meeting SDK version?**  
macOS 11.4  
SDK v.5.7.6.1340

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

1. Get a shared instance of the SDK: ZoomSDK\* sdk = [ZoomSDK sharedSDK];
2. Set domain to “[zoom.us](http://zoom.us)”: [sdk setZoomDomain:@“[zoom.us](http://zoom.us)”];
3. Authorize an SDK: ZoomSDKError sdkAuthError = [[ZoomSDK sharedSDK].getAuthService sdkAuth:key appSecret:secret];
4. The Facetime camera is being activated. The green LED is turned on.

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

- Device: Apple iMac late 2017
- OS: macOS Big Sur 11.4

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 16, 2021, 8:57pm UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/2 "2021-12-16T20:57:26Z")

</div>

Hi @mcfly, thanks for the post.

I was not able to reproduce this behavior. On a fresh build with the SDK, the camera does not turn on and permission is not requested until after joining or starting a meeting. On subsequent runs, the camera light is not active until I can see my video preview in the meeting. Are you able to reproduce this using the SDK sample app? Is it possible that another application on your machine is attempting to use the camera?

Thanks!

---

<div class="post-metadata">

**Author:** ![mcfly](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcfly](https://devforum.zoom.us/u/mcfly)\
**Post date:** [December 17, 2021, 1:33pm UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/3 "2021-12-17T13:33:27Z")

</div>

Hi @jon.zoom ,  
This behavior is definitely caused by Zoom SDK because if I remove the initialization code, the camera is not turned on.  
The SDK sample does not turn the camera on. After further investigation we have found that the camera was turned on after calling [setting enableCatchHDVideo:YES];.  
Previous SDK version we used did not turn the camera on after this call.  
So, actual steps are:

1. Initialize SDK
2. Authorize SDK
3. In the authorization callback (onZoomSDKAuthReturn:) call:  
[[[[ZoomSDK sharedSDK] getSettingService] getVideoSetting] enableCatchHDVideo:YES];
4. The camera is being activated

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 17, 2021, 9:07pm UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/4 "2021-12-17T21:07:40Z")

</div>

Hi @mcfly,

Thanks for clarifying around your usage of the SDK. For the SDK’s video settings, they are meant to mimic the default UI’s setting window in which a video preview is active to show the changes as they are made. Since you were not seeing this behavior in an older version of the SDK, we’ll need to check whether or not a change was explicitly made for this, or if some of the behavior from the default UI leaked over into this method’s functionality. Can you please confirm the last version where this behaved differently?

Thanks!

---

<div class="post-metadata">

**Author:** ![mcfly](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcfly](https://devforum.zoom.us/u/mcfly)\
**Post date:** [December 21, 2021, 11:01am UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/5 "2021-12-21T11:01:53Z")

</div>

Hi @jon.zoom ,  
The version where tis behaved differently is 5.5.12511.0420  
Regards,  
Sergey Nikitin

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 22, 2021, 12:07am UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/6 "2021-12-22T00:07:34Z")

</div>

Hi @mcfly,

Thanks for confirming the version. We’ll look into this and keep you updated.

Just so you are aware, I tested and confirmed that this behavior is also present on the newly released 5.9.0 version of the SDK.

Thanks!

---

<div class="post-metadata">

**Author:** ![mcfly](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcfly](https://devforum.zoom.us/u/mcfly)\
**Post date:** [December 23, 2021, 12:17pm UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/7 "2021-12-23T12:17:31Z")

</div>

Hi @jon.zoom , thank you, waiting for updates

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 23, 2021, 6:10pm UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/8 "2021-12-23T18:10:00Z")

</div>

Hi @mcfly,

After looking into this, we have determined that the behavior that existed in the older version of the SDK is incorrect. Whenever there are changes made to the video settings of a user, it should be reflected in a video preview so that the changes are apparent to the end user.

Thanks!

---

<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 23, 2022, 4:10am UTC](https://devforum.zoom.us/t/camera-is-being-activated-right-after-the-sdk-initialization/61525/9 "2022-01-23T04:10:15Z")

</div>

Closed on January 23, 2022, 4:10am UTC

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