Screen share only works once between Android and angular web client

Hi @ all,

we’re currently devoloping an application based on the openvidu android tutorial. Currently we can share the screen from web to android once. If the user stops sharing the screen and tries to start it again it won’t be shown within the android app.

In general when shareing a screen within android a new user will be created with it’s own peer connection. I debugged the app and found out that the web client triggers the “Participant Unpulished” event when stopping the screenshare. Within the android example transcievers are used to fetch the audio and video streams of the screen share.

Now my question is: How can I “clean up” when stopping a screen share in order to let the user share it’s screen again within the android application?