Excuse me.
This library can support evert listener when user sharing this screen like Zoom Video SDK on React Native?
Code snippet on Zoom Video SDK on React Native
onst [isScreenShared, setIsScreenShared] = useState(false);
const userShared = zoom.addListener(EventType.onUserShareStatusChanged, async (event) => {
console.debug('event: ', event)
switch (event.status) {
case "ZoomVideoSDKShareStatus_Start":
setIsScreenShared(true)
break;
case "ZoomVideoSDKShareStatus_Stop":
setIsScreenShared(false)
break;
default:
console.error(`ERROR: Something went wrong. event = ${event}`)
}
});
listeners.current.push(userShared);
<ZoomView
style={styles.container}
userId={user.userId}
sharing={isScreenShared}
fullScreen
videoAspect={VideoAspect.PanAndScan}
/>