Prevent audio from stop when sharing screen

Hello guys,
So, I have a OpenVidu working perfectly, the only thing is bothering me is that, when user is speaking and starts sharing a screen, the audio goes out. I think this is happening because I am unpublishing the user to publish the screen. The audio comes back right when the screen is publish, but can you think about some way I can prevent that from happening?

Using replaceTrack instead unpublish and publish

https://docs.openvidu.io/en/2.16.0/advanced-features/switch-camera/#switch-camera

Man, you guys are so awesome with the support. Thanks a lot, worked for me!

1 Like