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.
SyntaxEdit
var mediaDevices = navigator.mediaDevices;
Return value
The MediaDevices
singleton object.
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'NavigatorUserMedia.mediaDevices' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibilityEdit
See alsoEdit
- WebRTC - the introductory page to the API
Navigator.getUserMedia()
this property participate to replace.