How to turn off invite person option in Jitsi Meet Activity in android studio

3.3k views Asked by At

I'm working on an android application in which I'm using Jitsi Meet API for video and conferencing but on the meeting page, there is an option to invite people which take to the browser and ask to download Jitsi meet app which I don't want to show in my app. I want to ask is there any way I can hide that button.

URL serverURL = new URL("https://meet.jit.si");
                        JitsiMeetConferenceOptions.Builder builder = new JitsiMeetConferenceOptions.Builder();
                        builder.setServerURL(serverURL);
                        builder.setWelcomePageEnabled(false);
                        builder.setRoom(meetingRoom);
                        JitsiMeetActivity.launch(OutgoingMeetingActivity.this, builder.build());
3

There are 3 answers

0
rngms On

for remove from the screen, open native Toolbox.js file and comment this line;

 {/* additionalButtons.has('invite') && <InviteButton styles = { buttonStylesBorderless } /> */}
0
BLH On

.setFeatureFlag("invite.enabled",false)

This feature flag alone won't do it. You have to check the react code to figure it out, as I did, to remove the invite button, you need to change the server file interface-config.js or config.js. Check either one of them. I forgot which one.

When you use the SDK, if you specify the server URL, the app loads the config from the web. This is how it works. If you use the Jitsi Meet original app for testing, without setting the server URL in settings, then it uses the config file from their server.

The first answer shouldn't be upvoted. It's not correct I think as of 2021. I'm using branch mobile-20.6.2

7
emkarachchi On

UPDATE

Here are some more flags as of 2021 from Jitsi docs


you can use flags from Jitsi meet SDK.

        JitsiMeetConferenceOptions.Builder builder =   new JitsiMeetConferenceOptions.Builder()
            .setServerURL(serverURL)
            .setWelcomePageEnabled(false)
            .setFeatureFlag("chat.enabled",false)
            .setFeatureFlag("invite.enabled",false)
            .setVideoMuted(videoMuted)
            .setUserInfo(userInfo)
            .setSubject(toName)
            .setRoom(roomId)
            .build();

setFeatureFlag("invite.enabled",false) is used to disable invite feature.

Also, you can find some useful flags from Jitsi-Meet