I have Issues in Screen sahre. Below is my code
alert.setPositiveButton(“OK”, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
//What ever you want to do with the value
final Editable YouEditTextValue = edittext.getText();
MeetingService meetingService1 = ZoomSDK.getInstance().getMeetingService();
JoinMeetingOptions options = new JoinMeetingOptions();
options.no_invite = true;
options.no_audio=true;
options.no_video=true;
options.no_bottom_toolbar = true;
options.no_share=false;
options.no_chat_msg_toast=true;
options.no_record=true;
options.no_dial_in_via_phone = true;
options.no_dial_out_to_phone = true;
JoinMeetingParams params1 = new JoinMeetingParams();
//params.displayName = "User Name";
params1.meetingNo = "81572630729";
params1.password = "vhtTBa";
meetingService1.joinMeetingWithParams(MainActivity.this, params1, options);
isjoin=true;
meetingService1.addListener(new MeetingServiceListener() {
@Override
public void onMeetingStatusChanged(MeetingStatus meetingStatus, int i, int i1) {
switch (meetingStatus) {
case MEETING_STATUS_CONNECTING:
// Meeting is connecting
break;
case MEETING_STATUS_INMEETING: {
if(isjoin) {
MediaProjectionManager manager = (MediaProjectionManager) getSystemService(Context.MEDIA_PROJECTION_SERVICE);
if (manager != null) {
Intent screenCaptureIntent = manager.createScreenCaptureIntent();
//startActivityForResult(screenCaptureIntent,REQUEST_SCREEN_CAPTURE_PERMISSION);
inMeetingService = ZoomSDK.getInstance().getInMeetingService();
shareController = inMeetingService.getInMeetingShareController();
MobileRTCSDKError error= shareController.startShareScreenSession(screenCaptureIntent);
}
else {
}
}}
break;
}
}
@Override
public void onMeetingParameterNotification(MeetingParameter meetingParameter) {
}
});
}
});
alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
// what ever you want to do with No option.
}
});
alert.show();
}
});
}
Review the code