Navigator: mediaDevices property
Baseline Widely available *
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.
* Some parts of this feature may have varying levels of support.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
ThemediaDevices read-only property of theNavigator interface returns aMediaDevices object, which provides access to connected media input devices like cameras and microphones, as well as screen sharing.
In this article
Value
TheMediaDevices singleton object. Usually, you just use this object's members directly, such as by callingnavigator.mediaDevices.getUserMedia().
Specifications
| Specification |
|---|
| Media Capture and Streams> # mediadevices> |
Browser compatibility
See also
- 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.