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