Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • EventTarget
    • MediaDevices

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • new __type(): EventTarget
    • Returns EventTarget

  • prototype: EventTarget

ondevicechange

ondevicechange: function | null

Methods

addEventListener

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

enumerateDevices

  • Returns Promise<MediaDeviceInfo[]>

getSupportedConstraints

getUserMedia

removeEventListener

Generated using TypeDoc