decodedhealth / flutter_zoom_plugin

Flutter plugin for zoom
Apache License 2.0
124 stars 83 forks source link

How to diable Meeting registration on joining meeting #58

Open JAGANPS opened 3 years ago

JAGANPS commented 3 years ago

@kevinbayes @gfiury @DzungTNgo @ShimiBaliti

Hello i am using the plugin and its works as gem to me but i have problem i am facing the issue when joining the meeting i get a pop up for registration which i don't want user to get registered ,how can i handle this background please suggest me how to implement this i am stuck at this .

Thanks in advance Jagan PS

WhatsApp Image 2021-01-12 at 10 29 15 AM i have attached the screen shot for your references please help me to bypass this problem

gfiury commented 3 years ago

Hey @JAGANPS, you shouldn't be facing this problem

this.meetingOptions = new ZoomMeetingOptions(
        userId: 'example',
        meetingId: meetingId,
        meetingPassword: meetingPassword,
        disableDialIn: "true",
        disableDrive: "true",
        disableInvite: "true",
        disableShare: "true",
        noAudio: "false",
        noDisconnectAudio: "false"
    );

The userId should be a valid Zoom User Id

The Zoom API to create an user The Zoom API to get an user

Let me know if you are already using a valid Id

JAGANPS commented 3 years ago

@gfiury @kevinbayes @DzungTNgo @ShimiBaliti hi when I went through the documentation of zoom I came over the function void setRegisterWebinarInfo(java.lang.String name, java.lang.String email, boolean cancel) I am able to set the display name by passing userid but after it I get this function how to handle this at backend how to integrate this in my code.

gfiury commented 3 years ago

@JAGANPS

You can't call that from Flutter because that is java code java.lang.String email. You need to extend the class ZoomView.java

Here is the Zoom Doc: InMeetingServiceListener

The changes will look like this:


import us.zoom.sdk.InMeetingServiceListener;

public class ZoomView  implements ..... InMeetingServiceListener {
...
...
...
     @override
     public void onJoinWebinarNeedUserNameAndEmail(InMeetingEventHandler eventHandler) {
            eventHandler.setRegisterWebinarInfo(this.username, this.email, false);
     }

}

The tricky part here is how are you gonna pass the username and the email. This is not a trivial change.

JAGANPS commented 3 years ago

@kevinbayes @DzungTNgo @ShimiBaliti @gfiury

error: method does not override or implement a method from a supertype @Override ^ 1 error When I remove the @override function still I get the webinar registration I still get the same webinar registration which I am not able to pass even when I hard code it I am getting the same issue WhatsApp Image 2021-01-12 at 10 29 15 AM

public void onJoinWebinarNeedUserNameAndEmail(InMeetingEventHandler eventHandler) { eventHandler.setRegisterWebinarInfo("test",""email@gmail.com", false); }

I get the same issues please help me to solve this