You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val params = JoinMeetingParams().apply {
displayName = firstName
meetingNo = meetingNumber
password = pwd
webinarToken = webToken
}
val result = meetingService.joinMeetingWithParams(context, params, options)
Timber.i("meetingService.meetingStatus", result.toString())
if (result == MeetingError.MEETING_ERROR_SUCCESS) {
return
} else {
}
Timber.i("meetingService.meetingStatus", meetingService.meetingStatus.toString())
if (meetingService.meetingStatus == MeetingStatus.MEETING_STATUS_IDLE || meetingService.meetingStatus != MeetingStatus.MEETING_STATUS_WAITINGFORHOST) {
} else if(meetingService.meetingStatus == MeetingStatus.MEETING_STATUS_WAITINGFORHOST){
} else {
meetingService.returnToMeeting(context)
}
}
// Function to redirect to the dashboard
fun redirectToDashboard() {
context.findActivity()
?.finish()
val intent = Intent(context, DashboardActivity::class.java)
context.startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
}
// Meeting service listener to handle meeting status changes
meetingServiceListener = object : MeetingServiceListener {
override fun onMeetingStatusChanged(p0: MeetingStatus?, p1: Int, p2: Int) {
when (p0) {
MeetingStatus.MEETING_STATUS_WAITINGFORHOST -> {
// Let Zoom SDK display its default waiting room
Timber.i("ZoomSDK", "Waiting for Host... Default UI will be shown")
}
MeetingStatus.MEETING_STATUS_INMEETING -> {
Timber.i("ZoomSDK", "Meeting started")
}
MeetingStatus.MEETING_STATUS_DISCONNECTING -> {
redirectToDashboard()
}
else -> Timber.i("ZoomSDK", "Other status: p0")
}
}
override fun onMeetingParameterNotification(p0: MeetingParameter?) {
// Handle meeting parameter notification
}
}
listener = object : ZoomSDKInitializeListener {
override fun onZoomSDKInitializeResult(p0: Int, p1: Int) {
if (p0 == 1) {
return
}
sdk.meetingService.addListener(meetingServiceListener)
val settingsHelper: MeetingSettingsHelper = sdk.getMeetingSettingsHelper()
settingsHelper.isCustomizedMeetingUIEnabled = false
if(sdk.isInitialized) {
if (meetType.equals("start")) {
startMeeting(context)
} else {
joinMeeting(context)
}
}
}
override fun onZoomAuthIdentityExpired() {
}
}
fun initializeZoomSdk() {
val initParams = ZoomSDKInitParams().apply {
jwtToken = token
domain = "zoom.us"
enableLog = true
}
sdk.initialize(context, listener, initParams)
}
initializeZoomSdk()
}
}
But here everything is workig fine except when user is waiting for the host to start the meeting . For that screen it is loading the blank screen. Can you fix this
The text was updated successfully, but these errors were encountered:
I'm using default zoom layout to render
class ZoomMeetingActivity : ComponentActivity() {
// .apply {
// no_driving_mode = false
// no_invite = false
// no_meeting_end_message = false
// no_titlebar = false
// no_bottom_toolbar = false
// no_dial_in_via_phone = true
// no_dial_out_to_phone = true
// no_disconnect_audio = false
// no_share = false
// invite_options = InviteOptions.INVITE_VIA_EMAIL or InviteOptions.INVITE_VIA_SMS
// no_audio = false
// no_video = false
// meeting_views_options = MeetingViewsOptions.NO_TEXT_MEETING_ID or MeetingViewsOptions.NO_TEXT_PASSWORD
// }
}
But here everything is workig fine except when user is waiting for the host to start the meeting . For that screen it is loading the blank screen. Can you fix this
The text was updated successfully, but these errors were encountered: