We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

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.


var mediaDevices = navigator.mediaDevices;

Return value

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


Specification Status Comment
Media Capture and Streams
The definition of 'NavigatorUserMedia.mediaDevices' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Microsoft Edge Internet Explorer Opera Safari (WebKit)
Basic support 51.0 (Yes) 36.0 (36.0) (Yes) (Yes) No support No support
Feature Android Android Webview Edge Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support 51.0 51.0 (Yes) 36.0 (36.0) 36.0 (36.0) No support No support No support 51.0

See also

Document Tags and Contributors

 Contributors to this page: thangman22, abbycar, chrisdavidmills, Mr0Lz, Sheppy, jpmedley, Sebastianz, teoli, Jib
 Last updated by: thangman22,