Screen Sharing is NOT working

I added the prop ‘sharing={true}’ in ZoomView, but after that the screen display turned black. or if there are additional settings required for screen sharing


** React Native Video SDK version?**
@zoom/react-native-videosdk”: “^1.11.0”

Hey @sanchai, did you follow the steps in our docs? Video SDK - React Native - Screen Sharing - Zoom Developers

Screensharing requires a few extra steps both on iOS and Anroid since it depends on Native APIs. There are step by step instructions in the document I shared, please take a look!

@ekaansh.zoom
After following the guideline in the link above, I am facing this Error on Android when I enable ‘sharing’ in ZoomView component of React Native.

Could you please shed me some light what I should do?
In the link, it also mention about example/src/screens/call-screen/call-screen.tsx. However, I cannot find it. Can you also lead me to the file?

Code Snippet

          <ZoomView
            style={styles.container}
            userId={user.userId}
            sharing
            fullScreen
            videoAspect={VideoAspect.PanAndScan}
          />

Error Message

Error while updating property 'sharing' of a view managed by: RNZoomView

null

Attempt to invoke interface method 'android.view.View us.zoom.sdk.ZoomVideoSDKAnnotationHelper.getAnnotationView()' on a null object reference

Hey @rachapong, you can find an exact diff for adding screensharing to Android here: feat: add screen share · zoom/videosdk-reactnative-quickstart@a8bf6bd · GitHub
Does this help? Does your native code look similar?

@ekaansh.zoom
The provided commit is quite similar to what I did. I can see the code print console.log(x, y) when other user share their screen.

However, I still found the same Error when I set sharing props on ZoomView component on Android.

Anything else that I might missed?

What happens when you omit the sharing prop?

This topic was automatically closed after 30 days. New replies are no longer allowed.