In case you encounter a black display whilst the usage of the camera on WhatsApp web, check your browser settings for camera permission.