英文:
How to turn off invite person option in Jitsi Meet Activity in android studio
问题
我正在开发一个安卓应用程序,其中我正在使用Jitsi Meet API进行视频和会议,但在会议页面上有一个邀请他人的选项,会跳转到浏览器并要求下载Jitsi Meet应用,我不希望在我的应用程序中显示这个。
我想问一下,是否有任何方法可以隐藏那个按钮。
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());
英文:
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());
答案1
得分: 3
UPDATE
以下是来自Jitsi文档的截至2021年的一些更多标志。
您可以使用来自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)
用于禁用邀请功能。
此外,您还可以从Jitsi-Meet中找到一些有用的标志。
英文:
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
答案2
得分: 0
.setFeatureFlag("invite.enabled",false)
这个特性标志单独是不够的。
你需要检查React代码来找出答案,就像我做的那样,要删除邀请按钮,你需要更改服务器文件 interface-config.js
或 config.js
。检查其中一个。我忘了是哪一个。
当你使用SDK时,如果指定了服务器URL,应用程序会从网络加载配置。这就是它的工作原理。如果你在设置中不设置服务器URL,使用Jitsi Meet原始应用程序进行测试,那么它会使用他们服务器上的配置文件。
我认为第一个答案不应该被点赞。我认为它在2021年已经不正确了。
我正在使用分支 mobile-20.6.2
。
英文:
.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
答案3
得分: 0
要从屏幕中移除,打开本机的Toolbox.js文件并注释掉这行代码;
{/* additionalButtons.has('invite') && <InviteButton styles={buttonStylesBorderless} /> */}
英文:
for remove from the screen, open native Toolbox.js file and comment this line;
{/* additionalButtons.has('invite') && <InviteButton styles = { buttonStylesBorderless } /> */}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论