|
@@ -1,150 +1,148 @@
|
1
|
1
|
/**
|
2
|
|
- * Enumeration with the events for the conference.
|
3
|
|
- * @type {{string: string}}
|
4
|
|
- */
|
5
|
|
-var JitsiConferenceEvents = {
|
6
|
|
- /**
|
7
|
|
- * A new media track was added to the conference. The event provides the
|
8
|
|
- * following parameters to its listeners:
|
9
|
|
- *
|
10
|
|
- * @param {JitsiTrack} track the added JitsiTrack
|
11
|
|
- */
|
12
|
|
- TRACK_ADDED: "conference.trackAdded",
|
13
|
|
- /**
|
14
|
|
- * The media track was removed from the conference. The event provides the
|
15
|
|
- * following parameters to its listeners:
|
16
|
|
- *
|
17
|
|
- * @param {JitsiTrack} track the removed JitsiTrack
|
18
|
|
- */
|
19
|
|
- TRACK_REMOVED: "conference.trackRemoved",
|
20
|
|
- /**
|
21
|
|
- * The dominant speaker was changed.
|
22
|
|
- */
|
23
|
|
- DOMINANT_SPEAKER_CHANGED: "conference.dominantSpeaker",
|
24
|
|
- /**
|
25
|
|
- * A new user joinned the conference.
|
26
|
|
- */
|
27
|
|
- USER_JOINED: "conference.userJoined",
|
28
|
|
- /**
|
29
|
|
- * A user has left the conference.
|
30
|
|
- */
|
31
|
|
- USER_LEFT: "conference.userLeft",
|
32
|
|
- /**
|
33
|
|
- * User role changed.
|
34
|
|
- */
|
35
|
|
- USER_ROLE_CHANGED: "conference.roleChanged",
|
36
|
|
- /**
|
37
|
|
- * User status changed.
|
38
|
|
- */
|
39
|
|
- USER_STATUS_CHANGED: "conference.statusChanged",
|
40
|
|
- /**
|
41
|
|
- * New text message was received.
|
42
|
|
- */
|
43
|
|
- MESSAGE_RECEIVED: "conference.messageReceived",
|
44
|
|
- /**
|
45
|
|
- * A user has changed it display name
|
46
|
|
- */
|
47
|
|
- DISPLAY_NAME_CHANGED: "conference.displayNameChanged",
|
48
|
|
- /**
|
49
|
|
- * Indicates that subject of the conference has changed.
|
50
|
|
- */
|
51
|
|
- SUBJECT_CHANGED: "conference.subjectChanged",
|
52
|
|
- /**
|
53
|
|
- * A participant avatar has changed.
|
54
|
|
- */
|
55
|
|
- AVATAR_CHANGED: "conference.avatarChanged",
|
56
|
|
- /**
|
57
|
|
- * New local connection statistics are received.
|
58
|
|
- */
|
59
|
|
- CONNECTION_STATS: "conference.connectionStats",
|
60
|
|
- /**
|
61
|
|
- * The Last N set is changed.
|
62
|
|
- */
|
63
|
|
- LAST_N_ENDPOINTS_CHANGED: "conference.lastNEndpointsChanged",
|
64
|
|
- /**
|
65
|
|
- * You are included / excluded in somebody's last N set
|
66
|
|
- */
|
67
|
|
- IN_LAST_N_CHANGED: "conference.inLastNChanged",
|
68
|
|
- /**
|
69
|
|
- * A media track ( attached to the conference) mute status was changed.
|
70
|
|
- */
|
71
|
|
- TRACK_MUTE_CHANGED: "conference.trackMuteChanged",
|
72
|
|
- /**
|
73
|
|
- * Audio levels of a media track ( attached to the conference) was changed.
|
74
|
|
- */
|
75
|
|
- TRACK_AUDIO_LEVEL_CHANGED: "conference.audioLevelsChanged",
|
76
|
|
- /**
|
77
|
|
- * Indicates that the connection to the conference has been interrupted
|
78
|
|
- * for some reason.
|
79
|
|
- */
|
80
|
|
- CONNECTION_INTERRUPTED: "conference.connectionInterrupted",
|
81
|
|
- /**
|
82
|
|
- * Indicates that the connection to the conference has been restored.
|
83
|
|
- */
|
84
|
|
- CONNECTION_RESTORED: "conference.connectionRestored",
|
85
|
|
- /**
|
86
|
|
- * Indicates that conference failed.
|
87
|
|
- */
|
88
|
|
- CONFERENCE_FAILED: "conference.failed",
|
89
|
|
- /**
|
90
|
|
- * Indicates that an error occured.
|
91
|
|
- */
|
92
|
|
- CONFERENCE_ERROR: "conference.error",
|
93
|
|
- /**
|
94
|
|
- * Indicates that conference has been joined. The event does NOT provide any
|
95
|
|
- * parameters to its listeners.
|
96
|
|
- */
|
97
|
|
- CONFERENCE_JOINED: "conference.joined",
|
98
|
|
- /**
|
99
|
|
- * Indicates that conference has been left.
|
100
|
|
- */
|
101
|
|
- CONFERENCE_LEFT: "conference.left",
|
102
|
|
- /**
|
103
|
|
- * You are kicked from the conference.
|
104
|
|
- */
|
105
|
|
- KICKED: "conferenece.kicked",
|
106
|
|
- /**
|
107
|
|
- * Indicates that start muted settings changed.
|
108
|
|
- */
|
109
|
|
- START_MUTED_POLICY_CHANGED: "conference.start_muted_policy_changed",
|
110
|
|
- /**
|
111
|
|
- * Indicates that the local user has started muted.
|
112
|
|
- */
|
113
|
|
- STARTED_MUTED: "conference.started_muted",
|
114
|
|
- /**
|
115
|
|
- * Indicates that DTMF support changed.
|
116
|
|
- */
|
117
|
|
- DTMF_SUPPORT_CHANGED: "conference.dtmfSupportChanged",
|
118
|
|
- /**
|
119
|
|
- * Indicates that recording state changed.
|
120
|
|
- */
|
121
|
|
- RECORDER_STATE_CHANGED: "conference.recorderStateChanged",
|
122
|
|
- /**
|
123
|
|
- * Indicates that phone number changed.
|
124
|
|
- */
|
125
|
|
- PHONE_NUMBER_CHANGED: "conference.phoneNumberChanged",
|
126
|
|
- /**
|
127
|
|
- * Indicates that available devices changed.
|
128
|
|
- */
|
129
|
|
- AVAILABLE_DEVICES_CHANGED: "conference.availableDevicesChanged",
|
130
|
|
- /**
|
131
|
|
- * Indicates that authentication status changed.
|
132
|
|
- */
|
133
|
|
- AUTH_STATUS_CHANGED: "conference.auth_status_changed",
|
134
|
|
- /**
|
135
|
|
- * Indicates that a the value of a specific property of a specific
|
136
|
|
- * participant has changed.
|
137
|
|
- */
|
138
|
|
- PARTICIPANT_PROPERTY_CHANGED: "conference.participant_property_changed",
|
139
|
|
- /**
|
140
|
|
- * Indicates that a message from another participant is received on
|
141
|
|
- * data channel.
|
142
|
|
- */
|
143
|
|
- ENDPOINT_MESSAGE_RECEIVED: "conference.endpoint_message_received",
|
144
|
|
- /**
|
145
|
|
- * Indicates that the room has been locked or unlocked.
|
146
|
|
- */
|
147
|
|
- LOCK_STATE_CHANGED: "conference.lock_state_changed"
|
148
|
|
-};
|
|
2
|
+ * The events for the conference.
|
|
3
|
+ */
|
149
|
4
|
|
150
|
|
-module.exports = JitsiConferenceEvents;
|
|
5
|
+/**
|
|
6
|
+ * Indicates that authentication status changed.
|
|
7
|
+ */
|
|
8
|
+export const AUTH_STATUS_CHANGED = "conference.auth_status_changed";
|
|
9
|
+/**
|
|
10
|
+ * Indicates that available devices changed.
|
|
11
|
+ */
|
|
12
|
+export const AVAILABLE_DEVICES_CHANGED = "conference.availableDevicesChanged";
|
|
13
|
+/**
|
|
14
|
+ * A participant avatar has changed.
|
|
15
|
+ */
|
|
16
|
+export const AVATAR_CHANGED = "conference.avatarChanged";
|
|
17
|
+/**
|
|
18
|
+ * Indicates that an error occured.
|
|
19
|
+ */
|
|
20
|
+export const CONFERENCE_ERROR = "conference.error";
|
|
21
|
+/**
|
|
22
|
+ * Indicates that conference failed.
|
|
23
|
+ */
|
|
24
|
+export const CONFERENCE_FAILED = "conference.failed";
|
|
25
|
+/**
|
|
26
|
+ * Indicates that conference has been joined. The event does NOT provide any
|
|
27
|
+ * parameters to its listeners.
|
|
28
|
+ */
|
|
29
|
+export const CONFERENCE_JOINED = "conference.joined";
|
|
30
|
+/**
|
|
31
|
+ * Indicates that conference has been left.
|
|
32
|
+ */
|
|
33
|
+export const CONFERENCE_LEFT = "conference.left";
|
|
34
|
+/**
|
|
35
|
+ * Indicates that the connection to the conference has been interrupted for some
|
|
36
|
+ * reason.
|
|
37
|
+ */
|
|
38
|
+export const CONNECTION_INTERRUPTED = "conference.connectionInterrupted";
|
|
39
|
+/**
|
|
40
|
+ * Indicates that the connection to the conference has been restored.
|
|
41
|
+ */
|
|
42
|
+export const CONNECTION_RESTORED = "conference.connectionRestored";
|
|
43
|
+/**
|
|
44
|
+ * New local connection statistics are received.
|
|
45
|
+ */
|
|
46
|
+export const CONNECTION_STATS = "conference.connectionStats";
|
|
47
|
+/**
|
|
48
|
+ * A user has changed it display name
|
|
49
|
+ */
|
|
50
|
+export const DISPLAY_NAME_CHANGED = "conference.displayNameChanged";
|
|
51
|
+/**
|
|
52
|
+ * The dominant speaker was changed.
|
|
53
|
+ */
|
|
54
|
+export const DOMINANT_SPEAKER_CHANGED = "conference.dominantSpeaker";
|
|
55
|
+/**
|
|
56
|
+ * Indicates that DTMF support changed.
|
|
57
|
+ */
|
|
58
|
+export const DTMF_SUPPORT_CHANGED = "conference.dtmfSupportChanged";
|
|
59
|
+/**
|
|
60
|
+ * Indicates that a message from another participant is received on data
|
|
61
|
+ * channel.
|
|
62
|
+ */
|
|
63
|
+export const ENDPOINT_MESSAGE_RECEIVED = "conference.endpoint_message_received";
|
|
64
|
+/**
|
|
65
|
+ * You are included / excluded in somebody's last N set
|
|
66
|
+ */
|
|
67
|
+export const IN_LAST_N_CHANGED = "conference.inLastNChanged";
|
|
68
|
+/**
|
|
69
|
+ * You are kicked from the conference.
|
|
70
|
+ */
|
|
71
|
+export const KICKED = "conferenece.kicked";
|
|
72
|
+/**
|
|
73
|
+ * The Last N set is changed.
|
|
74
|
+ */
|
|
75
|
+export const LAST_N_ENDPOINTS_CHANGED = "conference.lastNEndpointsChanged";
|
|
76
|
+/**
|
|
77
|
+ * Indicates that the room has been locked or unlocked.
|
|
78
|
+ */
|
|
79
|
+export const LOCK_STATE_CHANGED = "conference.lock_state_changed";
|
|
80
|
+/**
|
|
81
|
+ * New text message was received.
|
|
82
|
+ */
|
|
83
|
+export const MESSAGE_RECEIVED = "conference.messageReceived";
|
|
84
|
+/**
|
|
85
|
+ * Indicates that a the value of a specific property of a specific participant
|
|
86
|
+ * has changed.
|
|
87
|
+ */
|
|
88
|
+export const PARTICIPANT_PROPERTY_CHANGED
|
|
89
|
+ = "conference.participant_property_changed";
|
|
90
|
+/**
|
|
91
|
+ * Indicates that phone number changed.
|
|
92
|
+ */
|
|
93
|
+export const PHONE_NUMBER_CHANGED = "conference.phoneNumberChanged";
|
|
94
|
+/**
|
|
95
|
+ * Indicates that recording state changed.
|
|
96
|
+ */
|
|
97
|
+export const RECORDER_STATE_CHANGED = "conference.recorderStateChanged";
|
|
98
|
+/**
|
|
99
|
+ * Indicates that start muted settings changed.
|
|
100
|
+ */
|
|
101
|
+export const START_MUTED_POLICY_CHANGED
|
|
102
|
+ = "conference.start_muted_policy_changed";
|
|
103
|
+/**
|
|
104
|
+ * Indicates that the local user has started muted.
|
|
105
|
+ */
|
|
106
|
+export const STARTED_MUTED = "conference.started_muted";
|
|
107
|
+/**
|
|
108
|
+ * Indicates that subject of the conference has changed.
|
|
109
|
+ */
|
|
110
|
+export const SUBJECT_CHANGED = "conference.subjectChanged";
|
|
111
|
+/**
|
|
112
|
+ * A new media track was added to the conference. The event provides the
|
|
113
|
+ * following parameters to its listeners:
|
|
114
|
+ *
|
|
115
|
+ * @param {JitsiTrack} track the added JitsiTrack
|
|
116
|
+ */
|
|
117
|
+export const TRACK_ADDED = "conference.trackAdded";
|
|
118
|
+/**
|
|
119
|
+ * Audio levels of a media track ( attached to the conference) was changed.
|
|
120
|
+ */
|
|
121
|
+export const TRACK_AUDIO_LEVEL_CHANGED = "conference.audioLevelsChanged";
|
|
122
|
+/**
|
|
123
|
+ * A media track ( attached to the conference) mute status was changed.
|
|
124
|
+ */
|
|
125
|
+export const TRACK_MUTE_CHANGED = "conference.trackMuteChanged";
|
|
126
|
+/**
|
|
127
|
+ * The media track was removed from the conference. The event provides the
|
|
128
|
+ * following parameters to its listeners:
|
|
129
|
+ *
|
|
130
|
+ * @param {JitsiTrack} track the removed JitsiTrack
|
|
131
|
+ */
|
|
132
|
+export const TRACK_REMOVED = "conference.trackRemoved";
|
|
133
|
+/**
|
|
134
|
+ * A new user joinned the conference.
|
|
135
|
+ */
|
|
136
|
+export const USER_JOINED = "conference.userJoined";
|
|
137
|
+/**
|
|
138
|
+ * A user has left the conference.
|
|
139
|
+ */
|
|
140
|
+export const USER_LEFT = "conference.userLeft";
|
|
141
|
+/**
|
|
142
|
+ * User role changed.
|
|
143
|
+ */
|
|
144
|
+export const USER_ROLE_CHANGED = "conference.roleChanged";
|
|
145
|
+/**
|
|
146
|
+ * User status changed.
|
|
147
|
+ */
|
|
148
|
+export const USER_STATUS_CHANGED = "conference.statusChanged";
|