onMeetingStatus method
Meeting Status Response Function for Zoom Web
Implementation
@override
Stream<dynamic> onMeetingStatus() {
streamController?.close();
streamController = StreamController<dynamic>();
ZoomMtg.inMeetingServiceListener('onMeetingStatus', allowInterop((status) {
var r = List<String>.filled(2, "");
/// 1(connecting), 2(connected), 3(disconnected), 4(reconnecting)
switch (status.meetingStatus) {
case 1:
r[0] = "MEETING_STATUS_CONNECTING";
break;
case 2:
r[0] = "MEETING_STATUS_INMEETING";
break;
case 3:
r[0] = "MEETING_STATUS_DISCONNECTING";
break;
case 4:
r[0] = "MEETING_STATUS_INMEETING";
break;
default:
r[0] = status.meetingStatus.toString();
break;
}
streamController!.add(r);
}));
return streamController!.stream;
}