When my device is locked, I can double-press the power button to get to the camera and switch to video. I can start and stop video and it is saved properly on the device. However, when I start the video and press the power button again to switch off the screen, I get "Unable to save this video: Error code 4" when I switch it back on. The complete video is lost, even the part before pressing the power button.
This use case is relevant for incidents where the user wants to make some sort of proof video which might be relevant in later legal actions. Usually, unlocking the device while e.g. being confronted by law enforcement is not an option. Also, switching off the screen both to save power or to conceal the fact that a video is taken is relevant. An adversary could make a long video unusable if they just press the power button in the end, without causing physical damage. Stopping and restarting capture would be a workaround, but that is unlikely to be performed properly in high-stress situations.
Is there a way to solve/circumvent this problem? I'm happy with solutions requiring a certain amount of technical effort.