Description
I am using @zoom/react-native-videosdk:"^1.10.10" when I call zoom.shareHelper.shareScreen() it opens a popup to start now sharing screen, but nothing happens after that.
I have also tried updating the library to latest version 1.13.10, but still facing the same issue.
I am following the same steps as mentioned in the documentation
On the other hand, in iOS it records the screen and save it in my iPhone gallery. But doesnt share the screen to other user.
Thank you @ekaansh.zoom for responding on my post.
Yes, I tried adding permission FOREGROUND_SERVICE_MICROPHONE and FOREGROUND_SERVICE in my app.json, as I am working in React Native. But its still not working. When I call zoom.shareHelper.shareScreen() it doesnt start sharing screen.
No I meant did you create the NotificationService.java file in ndroid/app/src/main/java/com/<your_app_org>/<your_app_name>/as described in the docs?
It should look like this:
public class NotificationService extends Service {
private final String CHANNEL_ID = "rn_zoom_video_sdk_notification_channel_id";
private final int NOTIFICATION_ID = 9;
...
}
}
Additionally, can you also confirm setting up android/app/src/main/java/com/<your_app_org>/<your_app_name>/MainActivity.kt? You need to add the following code:
I am a bit lost here @ekaansh.zoom . I am using React Native Expo Bare workflow setup, these files supposed to be created automatically inside android folder.
If I create these files inside android folder by myself, then while building the apk or ios apps, these files not be there.
Do you get my point? Or am I wrong?
When you run expo prebuild, it’ll generate the required ios and android directories inside your react-native app directory. You’ll then have to manually create/modify these files as explained in our documentations. Please follow all the steps as in the docs.
@ekaansh.zoom For the iOS, do I have to follow the same steps as described in documentation for iOS? Is it possible for you to provide me a GitHub code for iOS zoom screen sharing implementation, just as you sent me GitHub link for android?
@ekaansh.zoom I tried the documentation you have provided for ios & android.
Android
Now when I call the zoom.shareHelper.shareScreen(); the screen gets blacked but nothing showed on the other end of the user i.e. the web client. It does prints ZoomVideoSDKShareStatus_Startin the logs for android, but nothing appears on the web side that has @zoom/videosdk. The canvas on the web, increases the height when the shareScreen() function called on the android. Other than that the video call and microphone works fine.
IOS
Also from the iOS, when I call the screenShare() it stars recording the screen, instead of sharing the screen, and when I stop it, it saved the recording to my phone gallary. Other than that the video call and microphone works fine.
Is this issue sounds familiar to you? Is it because I am passing the channel_id wrong? Or should I have to implement anything related to handling screen share on the web side as well, thats why its not appearing on the web side? I mean is there anything Im missing on the web side related to screen sharing?
Note: Screen share option is only available on phone, and web side users can only see the phone screens. So we are not implementing the screen share option in the web side.
Thank you for sharing more about this during our office hours, it was great to chat with you. Could you share code snippets for your android and iOS screen share implementation?
@adityadeshmukh932 I am still looking into this issue with @rehema.zoom . I will update here if we find anything.
Let me know if you have already found the solution.