Back to Content

Navigator: mediaDevices property

files/en-us/web/api/navigator/mediadevices/index.md

latest895 B
Original Source

{{securecontext_header}}{{APIRef("Media Capture and Streams")}}

The mediaDevices read-only property of the {{domxref("Navigator")}} interface returns a {{domxref("MediaDevices")}} object, which provides access to connected media input devices like cameras and microphones, as well as screen sharing.

Value

The {{domxref("MediaDevices")}} singleton object. Usually, you just use this object's members directly, such as by calling {{domxref("MediaDevices.getUserMedia", "navigator.mediaDevices.getUserMedia()")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also