Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Constants.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * The value for the "var" attribute of feature tag in disco-info packets.
  3. */
  4. export const DISCO_REMOTE_CONTROL_FEATURE
  5. = "http://jitsi.org/meet/remotecontrol";
  6. /**
  7. * Types of remote-control-event events.
  8. * @readonly
  9. * @enum {string}
  10. */
  11. export const EVENT_TYPES = {
  12. mousemove: "mousemove",
  13. mousedown: "mousedown",
  14. mouseup: "mouseup",
  15. mousedblclick: "mousedblclick",
  16. mousescroll: "mousescroll",
  17. keydown: "keydown",
  18. keyup: "keyup",
  19. permissions: "permissions",
  20. stop: "stop",
  21. supported: "supported"
  22. };
  23. /**
  24. * Actions for the remote control permission events.
  25. * @readonly
  26. * @enum {string}
  27. */
  28. export const PERMISSIONS_ACTIONS = {
  29. request: "request",
  30. grant: "grant",
  31. deny: "deny",
  32. error: "error"
  33. };
  34. /**
  35. * The type of remote control events sent trough the API module.
  36. */
  37. export const REMOTE_CONTROL_EVENT_TYPE = "remote-control-event";
  38. /**
  39. * The remote control event.
  40. * @typedef {object} RemoteControlEvent
  41. * @property {EVENT_TYPES} type - the type of the event
  42. * @property {int} x - avaibale for type === mousemove only. The new x
  43. * coordinate of the mouse
  44. * @property {int} y - For mousemove type - the new y
  45. * coordinate of the mouse and for mousescroll - represents the vertical
  46. * scrolling diff value
  47. * @property {int} button - 1(left), 2(middle) or 3 (right). Supported by
  48. * mousedown, mouseup and mousedblclick types.
  49. * @property {KEYS} key - Represents the key related to the event. Supported by
  50. * keydown and keyup types.
  51. * @property {KEYS[]} modifiers - Represents the modifier related to the event.
  52. * Supported by keydown and keyup types.
  53. * @property {PERMISSIONS_ACTIONS} action - Supported by type === permissions.
  54. * Represents the action related to the permissions event.
  55. *
  56. * Optional properties. Supported for permissions event for action === request:
  57. * @property {string} userId - The user id of the participant that has sent the
  58. * request.
  59. * @property {string} userJID - The full JID in the MUC of the user that has
  60. * sent the request.
  61. * @property {string} displayName - the displayName of the participant that has
  62. * sent the request.
  63. * @property {boolean} screenSharing - true if the SS is started for the local
  64. * participant and false if not.
  65. */