vk82786
(Varun)
October 24, 2020, 8:31pm
1
Description
Im trying to integrate zoom windows sdk using the c# wrapper but i was not successfully but when i try to download and run the demo project https://github.com/zoom/zoom-c-sharp-wrapper it was running fine
To Reproduce(If applicable)
Steps to reproduce the behavior:
Made a new wpf project
2.Copied all the files in bin folder of the demo project to bin/x86/Release folder
3.When i run the application im not getting any call back in Add_CB_onAuthenticationReturn
Enabled the sdk logger but i did not find anything there
Proddy
(Josh)
October 24, 2020, 10:51pm
2
I assume you’re running CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth() , this function returns an SDKError , have you checked the output of that error?
vk82786
(Varun)
October 24, 2020, 11:15pm
3
InitParam initParam = new InitParam();
initParam.enable_log = true;
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.Initialize(initParam);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn(onAuthenticationReturn);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLogout(onLogout);
ZOOM_SDK_DOTNET_WRAP.AuthParam authParam = new ZOOM_SDK_DOTNET_WRAP.AuthParam();
authParam.appKey = "";
authParam.appSecret = "";
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(authParam);
Above is the code which iam running
I dont get any errors
Proddy
(Josh)
October 24, 2020, 11:19pm
4
Change the code to:
InitParam initParam = new InitParam();
initParam.enable_log = true;
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.Initialize(initParam);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn(onAuthenticationReturn);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet);
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLogout(onLogout);
ZOOM_SDK_DOTNET_WRAP.AuthParam authParam = new ZOOM_SDK_DOTNET_WRAP.AuthParam();
authParam.appKey = "";
authParam.appSecret = "";
ZOOM_SDK_DOTNET_WRAP.SDKError sdkErr = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(authParam);
if (sdkErr != ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_SUCCESS)
{
MessageBox.Show(sdkErr.ToString());
}
This should give you a popup with the SDKError if it isn’t a success.
vk82786
(Varun)
October 24, 2020, 11:22pm
5
Im getting SDKERR_UNINTIALIZE
Proddy
(Josh)
October 24, 2020, 11:23pm
6
Ah, in which case you need to do this at the start of your code:
ZOOM_SDK_DOTNET_WRAP.InitParam param = new ZOOM_SDK_DOTNET_WRAP.InitParam();
param.web_domain = "https://zoom.us";
ZOOM_SDK_DOTNET_WRAP.SDKError err = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.Initialize(param);
if (ZOOM_SDK_DOTNET_WRAP.SDKError.SDKERR_SUCCESS == err)
{
// Success
}
else
{
// Handle Initialise error
}
1 Like
vk82786
(Varun)
October 24, 2020, 11:29pm
7
Thanks @Proddy its working now , that bit of code was not present in the demo project.
And a small clarification i just need to copy the bin folder from the demo project to bin/x86/Release folder right ?
Proddy
(Josh)
October 24, 2020, 11:30pm
8
It is present, just in App.xaml.cs.
Yes, the entire bin folder is required to run your app.
vk82786
(Varun)
October 24, 2020, 11:35pm
9
Ohh my bad , Thanks for the info