When you open an app that wants to access the webcam for the first time, macOS will prompt you to allow it to do so. It’s easy to apply a cover and forget about it, especially if you don’t use your webcam frequently. If you’re not getting any errors, and all you see is a black screen, make sure there isn’t anything covering your webcam.
Many people cover their webcam when it’s not in use to protect their privacy.
It might sound obvious, but if your webcam isn’t working properly, the lens might just be blocked or covered with something. It’s always best to check the basics first.