I have a flutter application which uses youtube_player_flutter: ^7.0.0+7 to play YouTube videos. This is an educational app and I don't want anyone to record my video lectures through any screen recorder. Is there anything I can do to block users recording my videos? Any kind of help is much appreciated. Thank you!
            Asked
            
        
        
            Active
            
        
            Viewed 505 times
        
    2
            
            
        
        Student
        
- 341
 - 1
 - 2
 - 12
 
1 Answers
2
            You have to add the FLAG_SECURE which will prevent the screenshot and video recording.
 await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);
This an example of how to disable Screenshot and Video Capture and also see this video.
Also, if you face a problem and if it is not working in the current version, I will recommend you to read the discussion on GitHub about the FLAG_SECURE don't work on Flutter application
        I_Al-thamary
        
- 3,385
 - 2
 - 24
 - 37