Reputation: 3791
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
Upvotes: 6
Views: 3292
Reputation: 1
Pull down your bar on the screen go to settings and find shortcut keys then you can turn off the automatic screenshot setting
Upvotes: 0
Reputation: 56
If you are using SurefaceView with media player then use SurfaceView.setSecure(true) , then your video will be secured from any other apps.
Upvotes: 4