Video stops when leaving browser tab

The video is interrupted when leaving the browser tab for other users

By leaving the tab I guess you mean switching to another one?
It sounds like a browser security/efficiency policy to me or an issue with your web app (we don’t know what client side code you’re running).
Are you able to reproduce it with a stock VideoRoom demo and a browser?

I’m using the library - “janus-gateway-tsdx”: “^0.3.3”,
stack: React

and it doesn’t reproduce in demo.

if participant 1 leaves the tab (switches to another), then participant 2 loses the video of the 1st participant

can you tell me or give advice on how to solve this? I also think that this is browser security, but there must be a solution

If you are not able to reproduce with the same environment (browser/os) on our official demos, then the issue is probably related to the stack you’re using (or your specific web app) rather than a browser policy.
Is the media restoring when the user switches back to the tab? If so maybe the app/stack is just muting the track when a tab switch is detected.
You should check on the project repo if someone had the same problem.

Yes, the video restores when I switch back to the tab.
Thanks for your response, I will continue looking for the solution