Yes, seems like above mentioned issue was the root cause.
Now, I’ve added a dialog which gets showed after joining a session, which when user clicks then only startShareScreen
gets called, and using this flow screen share is working fine.
@vic.yang I think this should be mentioned somewhere in the docs as well.