MediaDevices object

Provides an object to give read or write access to available media devices.

Syntax


var mediaDevices = NavigatorUserMedia.MediaDevices;

DOM Information

Inheritance Hierarchy

 eventtarget
   MediaDevices

Members

The MediaDevices object has these types of members:

Events

The MediaDevices object has these events.

EventDescription
ondevicechange

This event is fired when the set of media device has changed.

 

Methods

The MediaDevices object has these methods.

MethodDescription
enumerateDevices

Returns information about available input and output media devices.

getSupportedConstraints

Returns a dictionary of supported containable properties.

getUserMedia

Prompts the user for permission, then returns a MediaStream object that represents audio or video input.

 

See also

navigator
eventtarget

 

 

Show: