We have checked that screenShareService is not null and confirmed that the sampleBuffer and sampleBufferType are correct. It seems we can not correctly access processSampleBuffer from the screenShareService object. Any suggestion on how to solve it would be very appreciated.
I apologise that the screen-sharing documentation missed out on mentioning the need for zoomcml.framework. Can I check if you have added that framework to your main target and see if you still get that error? We are also updating our doc to mention that.
I am also unable to start screen sharing in my app due to the same error.
I was just about to post this when I saw your reply, but adding zoomcml.framework didn’t change the situation.
Apologise of the mistake I made here. Please include CptShare.xcframework instead of zoomcml.xcframework in your main project. We have updated our screen-sharing documentation on this. For more details in all the Zoom’s xcframeworks, you can refer to here.
Thank you @boonjun.tan , it solved! There are no more crashes.
But now I have another problem: the callback onUserShareStatusChanged is never called, so the main target has no way to know when the user starts screen sharing.
Would it be better to create a new topic about this problem?
Great to hear that the solution resolved your crashes.
As for the callback onUserShareStatusChanged, we can continue with this thread here. You should indeed get this callback whenever the share status of anyone has any changes but you will first need to subscribe to the ZoomVideoSDKDelegate first. Can I check that you have subscribed to this already before the screen sharing happened? If not, you can take a look at our documentation on this here.
I subscribed to the ZoomVideoSDKDelegate here, so it seems that other callbacks are called correctly such as onUserJoin and onUserLeave, but onUserShareStatusChanged is not called.
On the other hand, when users connecting from browsers starts screen sharing, onUserShareStatusChanged is called.
Do you mean to say that on web screen sharing the onUserShareStatusChanged callback is triggered but it does not get triggered when iOS screen shares? Does this happen on your actual application or the sample application you have provided? I don’t need the Zoom’s log if it’s your sample app since I can download it and investigate on my end but if it’s your actual application then I will need the log.