In macOS Mojave (10.14) Apple has introduced more user privacy and security features, just like on your iPhone you will now need to approve apps that want access to your microphone and Camera.
Open System Preferences
Open Security & Privacy
Open the Privacy tab and click the Padlock to unlock these settings. Now we can select the Camera section and make sure the app we want for example Google Chrome us allowed access.