Navigator.mediaDevices

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 screensharing.

Syntax

var mediaDevices = navigator.mediaDevices;

Return value

The MediaDevices singleton object.

Specifications

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

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support Not supported 36.0 (36.0) Not supported Not supported Not supported
Feature Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support Not supported 36.0 (36.0) 36.0 (36.0) Not supported Not supported Not supported Not supported

See also

Document Tags and Contributors

 Contributors to this page: Sebastianz, teoli, Jib
 Last updated by: Sebastianz,