Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MediaDevices

Hierarchy

Index

Properties

EventTarget

EventTarget: object

Type declaration

  • constructor: function
    • 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

    Returns boolean

enumerateDevices

  • Returns Promise<MediaDeviceInfo[]>

getSupportedConstraints

getUserMedia

removeEventListener

Generated using TypeDoc