The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on.
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.
Obtains an array of information about the media input and output devices available on the system.
Returns an object conforming to MediaTrackSupportedConstraints indicating which constrainable properties are supported on the MediaStreamTrack interface.
With the user's permission through a prompt, turns on a camera or screensharing and/or a microphone on the system and provides a MediaStream containing a video track and/or an audio track with the input.
The event handler for the devicechange event.
Removes the event listener previously registered with EventTarget.addEventListener.