Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The Navigator.mediaDevices
read-only property returns a MediaDevices
object, which provides access to connected media input devices like cameras and microphones, as well as screen sharing.