Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
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.
MediaDevices singleton object. Usually, you just use this object's
members directly, such as by calling
|Media Capture and Streams |
BCD tables only load in the browser
- Media Capture and Streams API: The entry point to the documentation about the entire Media Capture and Streams API.
- WebRTC API: Documentation about the WebRTC API, which is closely related.