简体   繁体   中英

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

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());

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

.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

要从屏幕上移除,请打开原生 Toolbox.js 文件并注释此行;

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM