Unable to get camera list

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

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>>

        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

        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.

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

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