Your camera may not work with Windows 10 due to missing drivers or a recent update.
It is also possible that your antivirus program is blocking the camera or that your privacy settings do not allow certain applications to access it.
You can follow the Microsoft tutorial below to help you diagnose and check your configuration to detect any problem.