Screen share not working with existing session

Hello,

We are using openvidu browser and implemented screen share functionality like below doc.
https://docs.openvidu.io/en/2.11.0/advanced-features/screen-share/

Here my problem is, in first time session creation screenshare working fine, but how to implement it in existing session with custom button triggering instead of initial session creation.

Hello @prakash.burra,

Please, consider to use the latest OpenVidu version (2.12.0). You can switch between camera and screen using replaceTrack supported in this new release or initializating a new publisher.
Take account you will have to set videoSource property to screen (if you want share your screen) or your video device ID.

Check the docs please.

Regards

Hello @CSantosM,

We have tried all possible ways and also tried the solution provided in latest OpenVidu version (2.12.0). We have done some good debugging from our end. But the issue remains the same. Below is the use case

We are trying to Stream the Screen & the Screen is visible to the user who’s sharing it but the attendees are not able to see the screen. There is a black image displayed

This use case is added in OpenVidu Call. Here you can see how we enable and disable screen sharing in a session. Simply you have to create a screen publisher and publish it.
In addition, if you want to change the screen share you can replace the track as the docs says.

Hi,

we are trying to share screen but screen is only visible to the one who share it, other participants in the call cannot see the screen. there is black screen showing to other participant in the call. we are using OpenVidu version 2.24.0.

https://docs.openvidu.io/en/stable/tutorials/openvidu-js-screen-share/