cancel
Showing results for 
Search instead for 
Did you mean: 

flutter when join a meeting. "MEETING_STATUS_IDLE - No meeting is running" when meeting is active

Vishnusharma
Newcomer
Newcomer

flutter_zoom_sdk: ^1.1.0+4

initilize zoom sdk in flutter using code

joinMeeting(BuildContext context) {
bool _isMeetingEnded(String status) {
var result = false;

if (Platform.isAndroid)
result = status == "MEETING_STATUS_DISCONNECTING" || status == "MEETING_STATUS_FAILED";
else
result = status == "MEETING_STATUS_IDLE";

return result;
}
if(meetingNumber!.isNotEmpty && meetingPassword!.isNotEmpty){
ZoomOptions zoomOptions = new ZoomOptions(
domain: "zoom.us",
appKey: appKey,
appSecret: appSecret,
);
var meetingOptions = new ZoomMeetingOptions(
userId: 'username', //pass username for join meeting only --- Any name eg:- EVILRATT.
meetingId: meetingNumber, //pass meeting id for join meeting only
meetingPassword: meetingPassword, //pass meeting password for join meeting only
disableDialIn: "true",
disableDrive: "true",
disableInvite: "true",
disableShare: "true",
disableTitlebar: "false",
viewOptions: "true",
noAudio: "false",
noDisconnectAudio: "false"
);

var zoom = ZoomView();
zoom.initZoom(zoomOptions).then((results) {
if(results[0] == 0) {
zoom.onMeetingStatus().listen((status) {
print("[Meeting Status Stream] : " + status[0] + " - " + status[1]);
if (_isMeetingEnded(status[0])) {
print("[Meeting Status] :- Ended");
timer?.cancel();
}
});
print("listen on event channel");
zoom.joinMeeting(meetingOptions).then((joinMeetingResult) {
timer = Timer.periodic(new Duration(seconds: 2), (timer) {
zoom.meetingStatus(meetingOptions.meetingId!)
.then((status) {
print("[Meeting Status Polling] : " + status[0] + " - " + status[1]);
});
});
});
}
}).catchError((error) {
print("[Error Generated] : " + error);
});
}else{
if(meetingNumber!.isEmpty){
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text("Enter a valid meeting id to continue."),
));
}
else if(meetingPassword!.isEmpty){
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text("Enter a meeting password to start."),
));
}
}

}

1 ACCEPTED SOLUTION

RN
Community Moderator | Employee
Community Moderator | Employee

Hi @Vishnusharma welcome to the community! I found a discussion similar to yours on the Zoom developer forum: https://devforum.zoom.us/t/flutter-integration-issue/85213/4. I hope you were able to get assistance there! If not, I would recommend posting in the developer forum to get the best support from a Zoom developer. Thanks! 

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Zoom Community Moderator
he/him/his

Have you heard about Zoom AI Companion? ➡️ Check it out!

View solution in original post

2 REPLIES 2

RN
Community Moderator | Employee
Community Moderator | Employee

Hi @Vishnusharma welcome to the community! I found a discussion similar to yours on the Zoom developer forum: https://devforum.zoom.us/t/flutter-integration-issue/85213/4. I hope you were able to get assistance there! If not, I would recommend posting in the developer forum to get the best support from a Zoom developer. Thanks! 

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Zoom Community Moderator
he/him/his

Have you heard about Zoom AI Companion? ➡️ Check it out!

Windex
Newcomer
Newcomer

Facing the same issue still now. Is that zoom meeting sdk is available ?