The scenario is the following:
User 1 joins his Meetme conference room and getCollaborationForCall is called to get the Collaboration instance that is then started.
User 1 invites User 2 to his Meetme conference.
User 1 has added the callback contentSharing.addOnContentSharingStartedCallback
User 2 starts screen sharing:
collaboration.getContentSharing() is used to get the content sharing instance, the content sharing renderer is initialized and contentSharing.startScreenSharing() is used to start the screen sharing.
We use contentSharing.getOutgoingScreenSharingStream() and we can visualize the screen share as the presenter (User 2).
contentSharing.addOnContentSharingStartedCallback of User 1 is not triggered.
How can User 1 access the screen sharing stream of User 2 ?
From my debugging while I was testing the scenario above, after having User 2 connected to the Meetme conference of User 1, I have checked the _collaborationsStore of both users.
Even though the users are in the same call/conference, inside the _collaborationsStore:
User 1: _callId: "d8d17f88-3a64-483a-bc5c-6cbae512b6ab" and _collaborationId: "n8GCXJPAui"
User 2: _callId: "afb5474f-6cfb-4a28-8b00-09d64d09b2c8" and _collaborationId: "u8OhjuLbpb"
From the documentation of getCollaborationForCall:
Gets or creates a new collaboration session for the given Call id.
Returns the collaboration if the call already has the collaboration.
Otherwise create the new collaboration for specified call.
I suppose both users should have the same collaboration inside the _collaborationsStore ?