How do I restrict recording of youtube app package using mediaprojection api from my app?
How do I restrict recording of youtube app package using mediaprojection api from my app? I created screencast application using mediaprojection api, it records everything from screen, I want to restrict apps like youtube, whatsapp etc. I tried using devicepolicymanager but didn’t worked. Here’s my Mediaprojection service class code, targetsdk: api 34