Using ffmpeg to record electron application in win10 will be black screen


The default compatibility of electron is windows 8, which can’t be recorded normally, only black screen.
When I right-click on the electron, the compatibility in the properties is set to windows 7 and it will be able to record normally.