Description
I want to develop a custom meeting ui and I found the meeting ui didn’t show up even the meeting status is MEETING_STATUS_INMEETING and the getLayout() method didn’t called.
Which version?
v4.6.21666.0429
Screenshots
Smartphone (please complete the following information):
- rockchip rk3288
- OS: Android
- Version: Android 6
Additional context
The AdroidManifest.xml:
<activity
android:name=".MyMeetingActivity"
android:configChanges="screenSize"
android:theme="@style/ZMTheme.MainWindow"
android:screenOrientation="fullSensor">
</activity>
The config.xml:
<resources>
<string name="app_name">testZomm</string>
</resources>
The activity_my_meeting.xml:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MyMeetingActivity">
<us.zoom.sdk.MobileRTCVideoView
android:id="@+id/mobileRTCVideoView"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/textView2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
</us.zoom.sdk.MobileRTCVideoView>
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="custom UI"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
The code for start meeting:
@Override
public void onZoomSDKLoginResult(long errorCode) {
Log.d(TAG, String.format("onZoomSDKLoginResult: %d", errorCode));
if (errorCode == ZoomAuthenticationError.ZOOM_AUTH_ERROR_SUCCESS) {
MeetingService meetingService = sdk.getMeetingService();
meetingService.addListener(this);
sdk.getMeetingSettingsHelper().setCustomizedMeetingUIEnabled(true);
meetingService.startInstantMeeting(this);
}
}