You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JitsiMediaDevicesEvents.js 893B

12345678910111213141516171819202122232425
  1. /**
  2. * The events for the media devices.
  3. */
  4. /**
  5. * Indicates that the list of available media devices has been changed. The
  6. * event provides the following parameters to its listeners:
  7. *
  8. * @param {MediaDeviceInfo[]} devices - array of MediaDeviceInfo or
  9. * MediaDeviceInfo-like objects that are currently connected.
  10. * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo
  11. */
  12. export const DEVICE_LIST_CHANGED = 'mediaDevices.devicechange';
  13. /**
  14. * Indicates that the environment is currently showing permission prompt to
  15. * access camera and/or microphone. The event provides the following
  16. * parameters to its listeners:
  17. *
  18. * @param {'chrome'|'opera'|'firefox'|'safari'|'nwjs'
  19. * |'react-native'|'android'} environmentType - type of browser or
  20. * other execution environment.
  21. */
  22. export const PERMISSION_PROMPT_IS_SHOWN
  23. = 'mediaDevices.permissionPromptIsShown';