Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

JitsiMediaDevicesEvents.js 1.1KB

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