您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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