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 1.2KB

12345678910111213141516171819202122232425262728293031323334
  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. * Event emitted when the user granted/blocked a permission for the camera / mic.
  15. * Used to keep track of the granted permissions on browsers which don't
  16. * support the Permissions API.
  17. */
  18. export const PERMISSIONS_CHANGED = 'rtc.permissions_changed';
  19. /**
  20. * Indicates that the environment is currently showing permission prompt to
  21. * access camera and/or microphone. The event provides the following
  22. * parameters to its listeners:
  23. *
  24. * @param {'chrome'|'opera'|'firefox'|'safari'|'nwjs'
  25. * |'react-native'|'android'} environmentType - type of browser or
  26. * other execution environment.
  27. */
  28. export const PERMISSION_PROMPT_IS_SHOWN
  29. = 'mediaDevices.permissionPromptIsShown';
  30. export const SLOW_GET_USER_MEDIA = 'mediaDevices.slowGetUserMedia';