When using the latest version of zoom SDK on Android i am facing an issue with the share screen button, i click on it and nothing happen. I did some debug and figure out that zoom.shareHelper.shareScreen() is returning undefined.
here is the part of onPressShare function
const onPressShare = async () => {
const isOtherSharing = await zoom.shareHelper.isOtherSharing();
const isShareLocked = await zoom.shareHelper.isShareLocked();
if (isOtherSharing) {
Alert.alert('Other is sharing');
} else if (isShareLocked) {
Alert.alert('Share is locked by host');
} else if (isSharing) {
zoom.shareHelper.stopShare();
} else {
zoom.shareHelper.shareScreen();
}
};
and here is the part of the listener
const userShareStatusChangeListener = zoom.addListener(
EventType.onUserShareStatusChanged,
async ({
user,
status,
}: {
user: ZoomVideoSdkUser;
status: ShareStatus;
}) => {
const shareUser: ZoomVideoSdkUser = new ZoomVideoSdkUser(user);
const mySelf: ZoomVideoSdkUserType = await zoom.session.getMySelf();
if (user.userId && status === ShareStatus.Start) {
setSharingUser(shareUser);
setFullScreenUser(shareUser);
setIsSharing(shareUser.userId === mySelf.userId);
} else {
setSharingUser(undefined);
setIsSharing(false);
}
}
);
any help?