I am working on video player app and I want no other app can record my video and audio as well. I am using simple VideoView to run videos in my app.
I have tried this code, this code prevents from taking the screenshot only.
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
But when I downloaded a screen recording app i.e. DU Recorder and check by recording, it's recording my video's screen and audio as well, this i don't want.
Could anyone help me from this? Thanks in advance
Screen Capture protection is possible in Android App, IOS App or IOs browser, but desktop and android browsers can not prevent screen capture.
The screen recording app is located in the notification panel. Swipe this panel downwards to bring up the “Quick Settings” menu. Swipe the top notifications bar down twice (the first time reveals the menu, the second time opens it up) to access the “Quick Settings.” Next, select the “Screen Record” icon.
If you are using SurefaceView with media player then use SurfaceView.setSecure(true) , then your video will be secured from any other apps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With