After a long search I couldn't find a way to prevent screen capture (there is only drm for videos and not free).
So, Can we use gotpointercapture
event because it has a pointerType
property and its values could be "touch", "mouse" and "pen". Then if i get a "" this is a screen capture and not a click then i could take the right decision and restrict user account
And could you find an alternative?
Please help me, my brain is going to explode 🙂💔
body { opacity: 1; /* default opacity */ } body:not(:focus) { opacity: 0; /* hide the page when it loses focus */ }
, andwindow.addEventListener('blur', function() { document.body.style.opacity = 0; });
. I have test it with split mode on android and it works!