The MediaDevices
interface provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
Documentation MediaDevices by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Variables
ondevicechange:Function
The event handler for the devicechange
event. This event is delivered to the MediaDevices
object when a media input or output device is attached to or removed from the user's computer.