如何在 Android Studio 中自定义使用 API 实现的 Jitsi Meet 的用户界面?
How to customize the UserInterface of Jitsi Meet implemented using API in Android Studio?
我想自定义 Jitsi Meet 的用户界面。我想删除位于中间底部的“邀请其他人”选项。我如何使用 java 在 Android Studio 中做到这一点?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_event_details);
try {
JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder()
.setServerURL(new URL(""))
.setWelcomePageEnabled(false)
.setConfigOverride("requireDisplayName", true)
.setConfigOverride("reqiureInviteOthers", false)
.build();
} catch (MalformedURLException e) {
e.printStackTrace();
}
public void onClickMeet(View v) {
EditText editText = findViewById(R.id.meetId);
String text = editText.getText().toString();
if (text.length() > 0) {
JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder().setRoom(text).build();
JitsiMeetActivity.launch(this, options);
}
}
JitsiMeetConferenceOptions.Builder builder = new JitsiMeetConferenceOptions.Builder();
builder.setFeatureFlag("invite.enabled", false);
JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder()
.setServerURL(new URL(""))
.setWelcomePageEnabled(false)
.setConfigOverride("requireDisplayName", true)
.setConfigOverride("reqiureInviteOthers", false)
.setFeatureFlag("invite.enabled", false)// <-- add this line
.setFeatureFlag("add-people.enabled", false)// <-- add this line
.build();
这是 the list 个可用的功能标志,您可以打开或关闭 Jitsi 功能
我想自定义 Jitsi Meet 的用户界面。我想删除位于中间底部的“邀请其他人”选项。我如何使用 java 在 Android Studio 中做到这一点?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_event_details);
try {
JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder()
.setServerURL(new URL(""))
.setWelcomePageEnabled(false)
.setConfigOverride("requireDisplayName", true)
.setConfigOverride("reqiureInviteOthers", false)
.build();
} catch (MalformedURLException e) {
e.printStackTrace();
}
public void onClickMeet(View v) {
EditText editText = findViewById(R.id.meetId);
String text = editText.getText().toString();
if (text.length() > 0) {
JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder().setRoom(text).build();
JitsiMeetActivity.launch(this, options);
}
}
JitsiMeetConferenceOptions.Builder builder = new JitsiMeetConferenceOptions.Builder();
builder.setFeatureFlag("invite.enabled", false);
JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder()
.setServerURL(new URL(""))
.setWelcomePageEnabled(false)
.setConfigOverride("requireDisplayName", true)
.setConfigOverride("reqiureInviteOthers", false)
.setFeatureFlag("invite.enabled", false)// <-- add this line
.setFeatureFlag("add-people.enabled", false)// <-- add this line
.build();
这是 the list 个可用的功能标志,您可以打开或关闭 Jitsi 功能