When you first use a webcam or microphone in a remote session, you are prompted to grant access to the system's camera and microphone features.
If you do not grant access at that time, you can grant access later by going to System Preferences, selecting Security & Privacy, clicking the Privacy tab, and selecting Camera or Microphone.