Besides, on current versions of macOS, you need to grant permissions to an app before it can use the camera.