when we screenshare full all screen, not tab,
then when we turn chrome of openvidu, then screen becomes infinitely loops.
I can make this only 1 loop. so gonna make as only chrome screen like google meet or media soup or others.
how to handle this?
thanks @pabloFuente
This has been asked multiple times in different places:
I know the ultimate hack to avoid the infinite loop…
Hide your own video on screen sharing!
sadly, there’s no solution on above 2 questions at all,
so I asked again here.
There is no solution because physics and the nature of the universe cannot be hacked with OpenVidu.
If you screen share a surface that is displaying its own image, that image will loop recursively.
Jin, this is not a bug , if you share you’re screen and you’re screen is being reproduced in your own screen, it’s normal to see an infinite loop. This effect applies to all streaming platforms, desktop recording programs… etc
You can try to record for example OBS using OBS, and you will see your screen infinite times. Or you can stream your desktop in Youtube and Twitch, and if you open your own stream, you will see your screen multiple times! That’s a normal effect, so don’t worry When you change your tab, anyone seeing you’re screen will not see the infinite loop.
Regards,
Carlos
I have a lot, a looooot of teachers reporting the same “bug”. The first 20 times I try to explain that, but now I just ignore them. Do you know what is the bigger problem? the thechnicals who take the “issue report” and send it to me.
this is media soup screenshare screen.
We can check on this demo link easily.
seems like they remove infinite loop only for browser.
They’re not removing anything, they are tricking it with the CSS applied on that <video>
tag (not sure if it’s even intentional from their side):
- they apply a mirror on your own video with
transform: scaleX(-1);
(IMO stupid to do it on screen-sharing, it makes sense only on webcam feeds) - this makes the little video to appear on the right-side - they do an
object-fit: cover;
inside a box withheight: 250px; width: 294px;
which is slightly square-ish and doesn’t show the sides, only the center of the screen
So you could replicate these in your CSS and partially hide the infinite loop.
OpenVidu Call App has a different default layout that shows the entire video in the entire window if there’s only one user, so it’s perfectly normal to have an infinite loop.
Hi there, Can you please let me know how to hide my own video while screen sharing and video. Thanks