How to hide invite button and close invite?

#1

Description
when I use zoomsdk program my app in windows and osx . I don’t want invite other guys. its a private a meeting, so I want to hide this button and close invite, but I had no idea.

how to fix it?

I had use electron-macsdk-zoom and electron-windows-zomm.

#2

Hi 700985,
Thanks for using Zoom SDK. We have an interface in our Electron addon:

MeetingConfig_EnableInviteButtonOnMeetingUI

You can refer to the method MeetingConfig_EnableInviteButtonOnMeetingUI: function (opts) in the zoom_meeting_configuration.js file to hide/show this invite button.

Hope this helps. Thanks!

#4

Try to call “MeetingConfig_EnableInviteButtonOnMeetingUI”

Got an exception.

But the method “MeetingConfig_SetBottomFloatToolbarWndVisibility” is successful

#5

Hi daimoon,
Thanks for the detail. There are 2 issues here:

  1. Regarding the parameter shown in the red rectangle, the {show:'not'} should be {show:false}.
  2. Please change the position where you call this method, do not call this method right after the authentication. The best practice is to call this method in the meetingstatus_callback, when the meeting status is MEETING_STATUS_INMEETING, call this method.

Hope this helps. Thanks!

#6

I try move to meetingstatuscb call this function. still same error!


I had use ‘console.log’ print it In the MeetingConfig_EnableInviteButtonOnMeetingUI then ’_addon.MeetingConfig_EnableInviteButtonOnMeetingUI’ echo like this

console.log(_addon);
console.log(_addon.MeetingConfig_EnableInviteButtonOnMeetingUI); 

{ SetMeetingConfigService: [Function: SetMeetingConfigService],
  MeetingConfig_SetBottomFloatToolbarWndVisibility: [Function: MeetingConfig_SetBottomFloatToolbarWndVisibility],
  MeetingConfig_DisableFreeUserOriginAction: [Function: MeetingConfig_DisableFreeUserOriginAction] }

undefined
#7

For mac electron sdk, ‘MeetingConfig_EnableInviteButtonOnMeetingUI’ function havn’t been implement, we have implement this function in objective-c .
You can set ‘disableToolbarInviteButtonClickOriginAction’ property to ‘true’ in ZoomSDKMeetingConfiguration.h to disable the action of invite button, and call ‘- (ZoomSDKError)hideSDKButtons:(BOOL)hide ButtonType:(SDKButton)button’ with param ‘button’ with ‘ToolBarInviteButton’ to hide the invite button. Please wrapper the code to js by yourself.

#8

[quote=“Derain_Yuan, post:7, topic:4032”]
action
[/quote]

Thanks, but I am’t IOS developer. I try to do , it not work.
I ask IOS developer ,He said .h files can’t change property.
How to change ‘property’ in .h file?
Cloud you share ‘ZoomSDK.framework’ to me?

#9

You need refer to our demo code, write the wrapper code, but not directly change the .h file.

#10

Thanks, Derain_Yuan.
meetingConfigObj(‘setDisableToolbarInviteButtonClickOriginAction’, true);
this func is work for me! but ‘hideSDKButtons’ is wrong! I dont know , how to change this.
meetingConfigObj(“hideSDKButtons”,true,‘ToolBarInviteButton’);

#11

meetingConfigObj(“hideSDKButtons”, true, ‘ButtonType’, 0);
Please go to learn the nodobjc.

#12

LOL, It work.Thanks you ,dude !