Hello everyone,
I’m encountering an issue with screen sharing when using the Zoom Video SDK on Safari browser running on macOS. Specifically, the function to start screen sharing is behaving inconsistently.
In other devices it is working fine
Here’s the code snippet I’m using:
import { Stream } from “@zoom/videosdk”;
export type mediaStream = typeof Stream;
const onScreenShareClick = useCallback(async () => {
mediaStream?.getShareStatus());
if (mediaStream?.getShareStatus() === ShareStatus.End && selfShareCanvas) {
await mediaStream?.startShareScreen(selfShareCanvas, {
requestReadReceipt: true,
});
}
}, [mediaStream, selfShareCanvas]);
Issue I faced,
Inconsistent Behavior : The screen sharing function works intermittently sometimes it starts sharing as expected, while at other times it fails to initiate the screenshare.
This issue is specific to Safari on macOS. In other browsers and operating systems, the functionality works fine.
Has anyone else experienced similar issues or have suggestions for troubleshooting?
Any advice will be greatly appreciated!
Thank you!