How to detect the user who is sharing the screen?

I need to detect the user who is started sharing the screen
There is a delegate method for ZoomSDKASController instance:
func onSharing(_ status: ZoomSDKShareStatus, user userID: UInt32)
to detect sharing state, and user who is sharing.

But I don’t have user with such id in meetingActionController?.getParticipantsList()

for example userID from onSharing(_,_) is equal


and users ids from getParticipantsList are equal

[1678**88, 1677**40]

how can I get ZoomSDKUserInfo object of user who is sharing the screen?

Thank you!

Hi @anton.yereshchenko, thanks for the post.

You can look up a user’s info by calling meetingActionController?.getUserByUserID(userID). Although I am not sure why the ID you are seeing would not match one from the participant list, so let me know if you experience any issues with this method.


1 Like

@jon.lieblich thank you a lot!
meetingActionController?.getUserByUserID(userID) is a solution.

1 Like

Hey @anton.yereshchenko,

Jon is currently out, so I will be taking over this thread until he returns.
I am glad you have the solution now :slight_smile:

Please let us know if you have any other questions.

1 Like