modified lib-jitsi-meet dev repo
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.ts 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * The events for the media devices.
  3. */
  4. export enum JitsiMediaDevicesEvents {
  5. /**
  6. * Indicates that the list of available media devices has been changed. The
  7. * event provides the following parameters to its listeners:
  8. *
  9. * @param {MediaDeviceInfo[]} devices - array of MediaDeviceInfo or
  10. * MediaDeviceInfo-like objects that are currently connected.
  11. * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo
  12. */
  13. DEVICE_LIST_CHANGED = 'mediaDevices.devicechange',
  14. /**
  15. * Event emitted when the user granted/blocked a permission for the camera / mic.
  16. * Used to keep track of the granted permissions on browsers which don't
  17. * support the Permissions API.
  18. */
  19. PERMISSIONS_CHANGED = 'rtc.permissions_changed',
  20. /**
  21. * Indicates that the environment is currently showing permission prompt to
  22. * access camera and/or microphone. The event provides the following
  23. * parameters to its listeners:
  24. *
  25. * @param {'chrome'|'opera'|'firefox'|'safari'|'nwjs'
  26. * |'react-native'|'android'} environmentType - type of browser or
  27. * other execution environment.
  28. */
  29. PERMISSION_PROMPT_IS_SHOWN = 'mediaDevices.permissionPromptIsShown',
  30. SLOW_GET_USER_MEDIA = 'mediaDevices.slowGetUserMedia'
  31. };
  32. // exported for backward compatibility
  33. export const DEVICE_LIST_CHANGED = JitsiMediaDevicesEvents.DEVICE_LIST_CHANGED;
  34. export const PERMISSIONS_CHANGED = JitsiMediaDevicesEvents.PERMISSIONS_CHANGED;
  35. export const PERMISSION_PROMPT_IS_SHOWN = JitsiMediaDevicesEvents.PERMISSION_PROMPT_IS_SHOWN;
  36. export const SLOW_GET_USER_MEDIA = JitsiMediaDevicesEvents.SLOW_GET_USER_MEDIA;