I had the same problem, and i fix it. It was a camera settings permissions in Win 11. Try this method and see if it works: