Firefox Tomorrow

web api instance property

Navigator: mediaDevices property

View on MDN ↗

Secure context

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

Value

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also