# Unable to get camera list

**URL:** <https://devforum.zoom.us/t/unable-to-get-camera-list/58563>\
**Category:** Windows\
**Created:** [October 7, 2021, 10:05pm UTC](https://devforum.zoom.us/t/unable-to-get-camera-list/58563 "2021-10-07T22:05:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![okan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/okan/32/427_2.png) [@okan](https://devforum.zoom.us/u/okan)\
**Post date:** [October 7, 2021, 10:05pm UTC](https://devforum.zoom.us/t/unable-to-get-camera-list/58563/1 "2021-10-07T22:05:17Z")

</div>

Cannot get camera list connected using C# wrapper  
ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetSettingServiceWrap().GetVideoSettings().GetCameraList()

Windows SDK/C# wrapper 5.7.6.1072  
See below for steps

---

<div class="post-metadata">

**Author:** ![okan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/okan/32/427_2.png) [@okan](https://devforum.zoom.us/u/okan)\
**Post date:** [October 10, 2021, 7:21pm UTC](https://devforum.zoom.us/t/unable-to-get-camera-list/58563/2 "2021-10-10T19:21:12Z")

</div>

I need to update this issue with the correct sequence. I found out that, camera list returns empty with new SDK if the customized UI option is set. To reproduce this issue change the below methods.

In \<\<App.xaml.cs\>\>

```auto
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            //init sdk
            {
                ZOOM_SDK_DOTNET_WRAP.InitParam param = new ZOOM_SDK_DOTNET_WRAP.InitParam();
                param.web_domain = "https://zoom.us";
                param.sdk_dll_path = System.IO.Path.Combine(<Set Path here>, @"bin\");
                param.config_opts = new ConfigurableOptions() { optionalFeatures = 1 << 5 };
                ZOOM_SDK_DOTNET_WRAP.SDKError err = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.Initialize(param);
                if (ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_SUCCESS == err)
                {

                }
                else//error handle.todo
                {

                }
            }
        }

```

Add UI customized option flag.

In \<\<MainWindow.xaml.cs\>\>  
After successful authentication callback try to get camera list

```auto
        public void onAuthenticationReturn(AuthResult ret)
        {
            if (ZOOM_SDK_DOTNET_WRAP.AuthResult.AUTHRET_SUCCESS == ret)
            {
                var cameras = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetSettingServiceWrap().GetVideoSettings().GetCameraList();

                if (cameras != null)
                {
                    System.Console.WriteLine($"Camera {cameras?.FirstOrDefault()?.GetDeviceName()}");
                }

                start_meeting_wnd.Show();
            }
            else//error handle.todo
            {
                Show();
            }
        }

```

When customize UI flag is not set, the camera list has a valid value. However, when the customized flag is set camera list is null.

As a reminder, our project is using customized UI and was working fine with the earlier SDK version 4.6.21666.0428. It seems this feature is broken in SDK version 5.7.6.1072.

---

<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 11, 2021, 8:49pm UTC](https://devforum.zoom.us/t/unable-to-get-camera-list/58563/3 "2021-10-11T20:49:10Z")

</div>

Hey @okan,

Thanks for using the dev forum!

We do not provide much developer support for the C# wrapper as it is not actively maintained by Zoom. Are you seeing this same issue in the C++ demo application?

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:** [November 11, 2021, 6:49am UTC](https://devforum.zoom.us/t/unable-to-get-camera-list/58563/4 "2021-11-11T06:49:32Z")

</div>

Closed on November 11, 2021, 6:49am UTC

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