I'm developing an secure application where i'm restricting another application to record the moment of my application (like videos).
The think is i had restricted the screen capture (both screenshot and video recording) of my application as stated here, but i cant able to restrict the audio of my application's video.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
setContentView(R.layout.activity_main);
playVideo();
//callAPI();
}
After screen capturing i can't able to see the video (shows black screen) but i can hear the audio.
Please help me to get out of this.
Thanks in advance