livekit-client 0.17.5 → 0.17.6-rc3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +26 -20
  3. package/dist/api/SignalClient.d.ts +1 -0
  4. package/dist/connect.d.ts +2 -0
  5. package/dist/index.d.ts +2 -2
  6. package/dist/livekit-client.esm.js +17347 -0
  7. package/dist/livekit-client.esm.js.map +1 -0
  8. package/dist/livekit-client.umd.js +2 -0
  9. package/dist/livekit-client.umd.js.map +1 -0
  10. package/dist/logger.d.ts +22 -11
  11. package/dist/options.d.ts +4 -2
  12. package/dist/proto/google/protobuf/timestamp.d.ts +1 -1
  13. package/dist/proto/livekit_models.d.ts +4 -1
  14. package/dist/proto/livekit_rtc.d.ts +45 -2
  15. package/dist/room/DeviceManager.d.ts +1 -1
  16. package/dist/room/RTCEngine.d.ts +1 -1
  17. package/dist/room/Room.d.ts +2 -2
  18. package/dist/room/events.d.ts +1 -1
  19. package/dist/room/participant/LocalParticipant.d.ts +9 -5
  20. package/dist/room/participant/RemoteParticipant.d.ts +9 -0
  21. package/dist/room/track/RemoteAudioTrack.d.ts +11 -0
  22. package/dist/test/mocks.d.ts +11 -0
  23. package/package.json +40 -15
  24. package/.eslintrc.js +0 -17
  25. package/.gitmodules +0 -3
  26. package/dist/api/RequestQueue.js +0 -61
  27. package/dist/api/RequestQueue.js.map +0 -1
  28. package/dist/api/SignalClient.js +0 -428
  29. package/dist/api/SignalClient.js.map +0 -1
  30. package/dist/connect.js +0 -130
  31. package/dist/connect.js.map +0 -1
  32. package/dist/index.js +0 -71
  33. package/dist/index.js.map +0 -1
  34. package/dist/logger.js +0 -24
  35. package/dist/logger.js.map +0 -1
  36. package/dist/options.js +0 -3
  37. package/dist/options.js.map +0 -1
  38. package/dist/proto/google/protobuf/timestamp.js +0 -108
  39. package/dist/proto/google/protobuf/timestamp.js.map +0 -1
  40. package/dist/proto/livekit_models.js +0 -2262
  41. package/dist/proto/livekit_models.js.map +0 -1
  42. package/dist/proto/livekit_rtc.js +0 -2544
  43. package/dist/proto/livekit_rtc.js.map +0 -1
  44. package/dist/room/DeviceManager.js +0 -62
  45. package/dist/room/DeviceManager.js.map +0 -1
  46. package/dist/room/PCTransport.js +0 -91
  47. package/dist/room/PCTransport.js.map +0 -1
  48. package/dist/room/RTCEngine.js +0 -562
  49. package/dist/room/RTCEngine.js.map +0 -1
  50. package/dist/room/Room.js +0 -767
  51. package/dist/room/Room.js.map +0 -1
  52. package/dist/room/errors.js +0 -68
  53. package/dist/room/errors.js.map +0 -1
  54. package/dist/room/events.js +0 -385
  55. package/dist/room/events.js.map +0 -1
  56. package/dist/room/participant/LocalParticipant.js +0 -647
  57. package/dist/room/participant/LocalParticipant.js.map +0 -1
  58. package/dist/room/participant/Participant.js +0 -189
  59. package/dist/room/participant/Participant.js.map +0 -1
  60. package/dist/room/participant/ParticipantTrackPermission.js +0 -16
  61. package/dist/room/participant/ParticipantTrackPermission.js.map +0 -1
  62. package/dist/room/participant/RemoteParticipant.js +0 -194
  63. package/dist/room/participant/RemoteParticipant.js.map +0 -1
  64. package/dist/room/participant/publishUtils.js +0 -189
  65. package/dist/room/participant/publishUtils.js.map +0 -1
  66. package/dist/room/participant/publishUtils.test.d.ts +0 -1
  67. package/dist/room/participant/publishUtils.test.js +0 -118
  68. package/dist/room/participant/publishUtils.test.js.map +0 -1
  69. package/dist/room/stats.js +0 -26
  70. package/dist/room/stats.js.map +0 -1
  71. package/dist/room/track/LocalAudioTrack.js +0 -153
  72. package/dist/room/track/LocalAudioTrack.js.map +0 -1
  73. package/dist/room/track/LocalTrack.js +0 -158
  74. package/dist/room/track/LocalTrack.js.map +0 -1
  75. package/dist/room/track/LocalTrackPublication.js +0 -64
  76. package/dist/room/track/LocalTrackPublication.js.map +0 -1
  77. package/dist/room/track/LocalVideoTrack.js +0 -297
  78. package/dist/room/track/LocalVideoTrack.js.map +0 -1
  79. package/dist/room/track/LocalVideoTrack.test.d.ts +0 -1
  80. package/dist/room/track/LocalVideoTrack.test.js +0 -68
  81. package/dist/room/track/LocalVideoTrack.test.js.map +0 -1
  82. package/dist/room/track/RemoteAudioTrack.js +0 -64
  83. package/dist/room/track/RemoteAudioTrack.js.map +0 -1
  84. package/dist/room/track/RemoteTrack.js +0 -49
  85. package/dist/room/track/RemoteTrack.js.map +0 -1
  86. package/dist/room/track/RemoteTrackPublication.js +0 -178
  87. package/dist/room/track/RemoteTrackPublication.js.map +0 -1
  88. package/dist/room/track/RemoteVideoTrack.js +0 -201
  89. package/dist/room/track/RemoteVideoTrack.js.map +0 -1
  90. package/dist/room/track/Track.js +0 -283
  91. package/dist/room/track/Track.js.map +0 -1
  92. package/dist/room/track/TrackPublication.js +0 -92
  93. package/dist/room/track/TrackPublication.js.map +0 -1
  94. package/dist/room/track/create.js +0 -131
  95. package/dist/room/track/create.js.map +0 -1
  96. package/dist/room/track/defaults.js +0 -21
  97. package/dist/room/track/defaults.js.map +0 -1
  98. package/dist/room/track/options.js +0 -100
  99. package/dist/room/track/options.js.map +0 -1
  100. package/dist/room/track/types.js +0 -3
  101. package/dist/room/track/types.js.map +0 -1
  102. package/dist/room/track/utils.js +0 -113
  103. package/dist/room/track/utils.js.map +0 -1
  104. package/dist/room/track/utils.test.d.ts +0 -1
  105. package/dist/room/track/utils.test.js +0 -85
  106. package/dist/room/track/utils.test.js.map +0 -1
  107. package/dist/room/utils.js +0 -79
  108. package/dist/room/utils.js.map +0 -1
  109. package/dist/version.js +0 -6
  110. package/dist/version.js.map +0 -1
  111. package/jest.config.js +0 -6
  112. package/src/api/RequestQueue.ts +0 -53
  113. package/src/api/SignalClient.ts +0 -499
  114. package/src/connect.ts +0 -100
  115. package/src/index.ts +0 -47
  116. package/src/logger.ts +0 -22
  117. package/src/options.ts +0 -149
  118. package/src/proto/google/protobuf/timestamp.ts +0 -232
  119. package/src/proto/livekit_models.ts +0 -2676
  120. package/src/proto/livekit_rtc.ts +0 -3269
  121. package/src/room/DeviceManager.ts +0 -57
  122. package/src/room/PCTransport.ts +0 -86
  123. package/src/room/RTCEngine.ts +0 -652
  124. package/src/room/Room.ts +0 -951
  125. package/src/room/errors.ts +0 -65
  126. package/src/room/events.ts +0 -424
  127. package/src/room/participant/LocalParticipant.ts +0 -734
  128. package/src/room/participant/Participant.ts +0 -269
  129. package/src/room/participant/ParticipantTrackPermission.ts +0 -32
  130. package/src/room/participant/RemoteParticipant.ts +0 -243
  131. package/src/room/participant/publishUtils.test.ts +0 -145
  132. package/src/room/participant/publishUtils.ts +0 -225
  133. package/src/room/stats.ts +0 -130
  134. package/src/room/track/LocalAudioTrack.ts +0 -137
  135. package/src/room/track/LocalTrack.ts +0 -161
  136. package/src/room/track/LocalTrackPublication.ts +0 -66
  137. package/src/room/track/LocalVideoTrack.test.ts +0 -70
  138. package/src/room/track/LocalVideoTrack.ts +0 -293
  139. package/src/room/track/RemoteAudioTrack.ts +0 -58
  140. package/src/room/track/RemoteTrack.ts +0 -62
  141. package/src/room/track/RemoteTrackPublication.ts +0 -198
  142. package/src/room/track/RemoteVideoTrack.ts +0 -235
  143. package/src/room/track/Track.ts +0 -343
  144. package/src/room/track/TrackPublication.ts +0 -120
  145. package/src/room/track/create.ts +0 -121
  146. package/src/room/track/defaults.ts +0 -23
  147. package/src/room/track/options.ts +0 -281
  148. package/src/room/track/types.ts +0 -20
  149. package/src/room/track/utils.test.ts +0 -93
  150. package/src/room/track/utils.ts +0 -115
  151. package/src/room/utils.ts +0 -70
  152. package/src/version.ts +0 -2
  153. package/tsconfig.eslint.json +0 -11
@@ -1,65 +0,0 @@
1
- export class LivekitError extends Error {
2
- code: number;
3
-
4
- constructor(code: number, message?: string) {
5
- super(message || 'an error has occured');
6
- this.code = code;
7
- }
8
- }
9
-
10
- export class ConnectionError extends LivekitError {
11
- constructor(message?: string) {
12
- super(1, message);
13
- }
14
- }
15
-
16
- export class TrackInvalidError extends LivekitError {
17
- constructor(message?: string) {
18
- super(20, message || 'Track is invalid');
19
- }
20
- }
21
-
22
- export class UnsupportedServer extends LivekitError {
23
- constructor(message?: string) {
24
- super(10, message || 'Unsupported server');
25
- }
26
- }
27
-
28
- export class UnexpectedConnectionState extends LivekitError {
29
- constructor(message?: string) {
30
- super(12, message || 'Unexpected connection state');
31
- }
32
- }
33
-
34
- export class PublishDataError extends LivekitError {
35
- constructor(message?: string) {
36
- super(13, message || 'Unable to publish data');
37
- }
38
- }
39
-
40
- export enum MediaDeviceFailure {
41
- // user rejected permissions
42
- PermissionDenied = 'PermissionDenied',
43
- // device is not available
44
- NotFound = 'NotFound',
45
- // device is in use. On Windows, only a single tab may get access to a device at a time.
46
- DeviceInUse = 'DeviceInUse',
47
- Other = 'Other',
48
- }
49
-
50
- export namespace MediaDeviceFailure {
51
- export function getFailure(error: any): MediaDeviceFailure | undefined {
52
- if (error && 'name' in error) {
53
- if (error.name === 'NotFoundError' || error.name === 'DevicesNotFoundError') {
54
- return MediaDeviceFailure.NotFound;
55
- }
56
- if (error.name === 'NotAllowedError' || error.name === 'PermissionDeniedError') {
57
- return MediaDeviceFailure.PermissionDenied;
58
- }
59
- if (error.name === 'NotReadableError' || error.name === 'TrackStartError') {
60
- return MediaDeviceFailure.DeviceInUse;
61
- }
62
- return MediaDeviceFailure.Other;
63
- }
64
- }
65
- }
@@ -1,424 +0,0 @@
1
- /**
2
- * Events are the primary way LiveKit notifies your application of changes.
3
- *
4
- * The following are events emitted by [[Room]], listen to room events like
5
- *
6
- * ```typescript
7
- * room.on(RoomEvent.TrackPublished, (track, publication, participant) => {})
8
- * ```
9
- */
10
-
11
- export enum RoomEvent {
12
- /**
13
- * When the connection to the server has been interrupted and it's attempting
14
- * to reconnect.
15
- */
16
- Reconnecting = 'reconnecting',
17
-
18
- /**
19
- * Fires when a reconnection has been successful.
20
- */
21
- Reconnected = 'reconnected',
22
-
23
- /**
24
- * When disconnected from room. This fires when room.disconnect() is called or
25
- * when an unrecoverable connection issue had occured
26
- */
27
- Disconnected = 'disconnected',
28
-
29
- /**
30
- * Whenever the connection state of the room changes
31
- *
32
- * args: ([[RoomState]])
33
- */
34
- StateChanged = 'stateChanged',
35
-
36
- /**
37
- * When input or output devices on the machine have changed.
38
- */
39
- MediaDevicesChanged = 'mediaDevicesChanged',
40
-
41
- /**
42
- * When a [[RemoteParticipant]] joins *after* the local
43
- * participant. It will not emit events for participants that are already
44
- * in the room
45
- *
46
- * args: ([[RemoteParticipant]])
47
- */
48
- ParticipantConnected = 'participantConnected',
49
-
50
- /**
51
- * When a [[RemoteParticipant]] leaves *after* the local
52
- * participant has joined.
53
- *
54
- * args: ([[RemoteParticipant]])
55
- */
56
- ParticipantDisconnected = 'participantDisconnected',
57
-
58
- /**
59
- * When a new track is published to room *after* the local
60
- * participant has joined. It will not fire for tracks that are already published.
61
- *
62
- * A track published doesn't mean the participant has subscribed to it. It's
63
- * simply reflecting the state of the room.
64
- *
65
- * args: ([[RemoteTrackPublication]], [[RemoteParticipant]])
66
- */
67
- TrackPublished = 'trackPublished',
68
-
69
- /**
70
- * The [[LocalParticipant]] has subscribed to a new track. This event will **always**
71
- * fire as long as new tracks are ready for use.
72
- *
73
- * args: ([[RemoteTrack]], [[RemoteTrackPublication]], [[RemoteParticipant]])
74
- */
75
- TrackSubscribed = 'trackSubscribed',
76
-
77
- /**
78
- * Could not subscribe to a track
79
- *
80
- * args: (track sid, [[RemoteParticipant]])
81
- */
82
- TrackSubscriptionFailed = 'trackSubscriptionFailed',
83
-
84
- /**
85
- * A [[RemoteParticipant]] has unpublished a track
86
- *
87
- * args: ([[RemoteTrackPublication]], [[RemoteParticipant]])
88
- */
89
- TrackUnpublished = 'trackUnpublished',
90
-
91
- /**
92
- * A subscribed track is no longer available. Clients should listen to this
93
- * event and ensure they detach tracks.
94
- *
95
- * args: ([[Track]], [[RemoteTrackPublication]], [[RemoteParticipant]])
96
- */
97
- TrackUnsubscribed = 'trackUnsubscribed',
98
-
99
- /**
100
- * A track that was muted, fires on both [[RemoteParticipant]]s and [[LocalParticipant]]
101
- *
102
- * args: ([[TrackPublication]], [[Participant]])
103
- */
104
- TrackMuted = 'trackMuted',
105
-
106
- /**
107
- * A track that was unmuted, fires on both [[RemoteParticipant]]s and [[LocalParticipant]]
108
- *
109
- * args: ([[TrackPublication]], [[Participant]])
110
- */
111
- TrackUnmuted = 'trackUnmuted',
112
-
113
- /**
114
- * A local track was published successfully. This event is helpful to know
115
- * when to update your local UI with the newly published track.
116
- *
117
- * args: ([[LocalTrackPublication]], [[LocalParticipant]])
118
- */
119
- LocalTrackPublished = 'localTrackPublished',
120
-
121
- /**
122
- * A local track was unpublished. This event is helpful to know when to remove
123
- * the local track from your UI.
124
- *
125
- * When a user stops sharing their screen by pressing "End" on the browser UI,
126
- * this event will also fire.
127
- *
128
- * args: ([[LocalTrackPublication]], [[LocalParticipant]])
129
- */
130
- LocalTrackUnpublished = 'localTrackUnpublished',
131
-
132
- /**
133
- * Active speakers changed. List of speakers are ordered by their audio level.
134
- * loudest speakers first. This will include the LocalParticipant too.
135
- *
136
- * Speaker updates are sent only to the publishing participant and their subscribers.
137
- *
138
- * args: (Array<[[Participant]]>)
139
- */
140
- ActiveSpeakersChanged = 'activeSpeakersChanged',
141
-
142
- /**
143
- * @deprecated Use ParticipantMetadataChanged instead
144
- * @internal
145
- */
146
- MetadataChanged = 'metadataChanged',
147
-
148
- /**
149
- * Participant metadata is a simple way for app-specific state to be pushed to
150
- * all users.
151
- * When RoomService.UpdateParticipantMetadata is called to change a participant's
152
- * state, *all* participants in the room will fire this event.
153
- *
154
- * args: (prevMetadata: string, [[Participant]])
155
- *
156
- */
157
- ParticipantMetadataChanged = 'participantMetadataChanged',
158
-
159
- /**
160
- * Room metadata is a simple way for app-specific state to be pushed to
161
- * all users.
162
- * When RoomService.UpdateRoomMetadata is called to change a room's state,
163
- * *all* participants in the room will fire this event.
164
- *
165
- * args: (string)
166
- */
167
- RoomMetadataChanged = 'roomMetadataChanged',
168
-
169
- /**
170
- * Data received from another participant.
171
- * Data packets provides the ability to use LiveKit to send/receive arbitrary payloads.
172
- * All participants in the room will receive the messages sent to the room.
173
- *
174
- * args: (payload: Uint8Array, participant: [[Participant]], kind: [[DataPacket_Kind]])
175
- */
176
- DataReceived = 'dataReceived',
177
-
178
- /**
179
- * Connection quality was changed for a Participant. It'll receive updates
180
- * from the local participant, as well as any [[RemoteParticipant]]s that we are
181
- * subscribed to.
182
- *
183
- * args: (connectionQuality: [[ConnectionQuality]], participant: [[Participant]])
184
- */
185
- ConnectionQualityChanged = 'connectionQualityChanged',
186
-
187
- /**
188
- * StreamState indicates if a subscribed (remote) track has been paused by the SFU
189
- * (typically this happens because of subscriber's bandwidth constraints)
190
- *
191
- * When bandwidth conditions allow, the track will be resumed automatically.
192
- * TrackStreamStateChanged will also be emitted when that happens.
193
- *
194
- * args: (pub: [[RemoteTrackPublication]], streamState: [[Track.StreamState]],
195
- * participant: [[RemoteParticipant]])
196
- */
197
- TrackStreamStateChanged = 'trackStreamStateChanged',
198
-
199
- /**
200
- * One of subscribed tracks have changed its permissions for the current
201
- * participant. If permission was revoked, then the track will no longer
202
- * be subscribed. If permission was granted, a TrackSubscribed event will
203
- * be emitted.
204
- *
205
- * args: (pub: [[RemoteTrackPublication]],
206
- * status: [[TrackPublication.SubscriptionStatus]],
207
- * participant: [[RemoteParticipant]])
208
- */
209
- TrackSubscriptionPermissionChanged = 'trackSubscriptionPermissionChanged',
210
-
211
- /**
212
- * LiveKit will attempt to autoplay all audio tracks when you attach them to
213
- * audio elements. However, if that fails, we'll notify you via AudioPlaybackStatusChanged.
214
- * `Room.canPlayAudio` will indicate if audio playback is permitted.
215
- */
216
- AudioPlaybackStatusChanged = 'audioPlaybackChanged',
217
-
218
- /**
219
- * When we have encountered an error while attempting to create a track.
220
- * The errors take place in getUserMedia().
221
- * Use MediaDeviceFailure.getFailure(error) to get the reason of failure.
222
- * [[getAudioCreateError]] and [[getVideoCreateError]] will indicate if it had
223
- * an error while creating the audio or video track respectively.
224
- *
225
- * args: (error: Error)
226
- */
227
- MediaDevicesError = 'mediaDevicesError',
228
-
229
- /**
230
- * A participant's permission has changed. Currently only fired on LocalParticipant.
231
- * args: (prevPermissions: [[ParticipantPermission]], participant: [[Participant]])
232
- */
233
- ParticipantPermissionsChanged = 'participantPermissionsChanged',
234
- }
235
-
236
- export enum ParticipantEvent {
237
- /**
238
- * When a new track is published to room *after* the local
239
- * participant has joined. It will not fire for tracks that are already published.
240
- *
241
- * A track published doesn't mean the participant has subscribed to it. It's
242
- * simply reflecting the state of the room.
243
- *
244
- * args: ([[RemoteTrackPublication]])
245
- */
246
- TrackPublished = 'trackPublished',
247
-
248
- /**
249
- * Successfully subscribed to the [[RemoteParticipant]]'s track.
250
- * This event will **always** fire as long as new tracks are ready for use.
251
- *
252
- * args: ([[RemoteTrack]], [[RemoteTrackPublication]])
253
- */
254
- TrackSubscribed = 'trackSubscribed',
255
-
256
- /**
257
- * Could not subscribe to a track
258
- *
259
- * args: (track sid)
260
- */
261
- TrackSubscriptionFailed = 'trackSubscriptionFailed',
262
-
263
- /**
264
- * A [[RemoteParticipant]] has unpublished a track
265
- *
266
- * args: ([[RemoteTrackPublication]])
267
- */
268
- TrackUnpublished = 'trackUnpublished',
269
-
270
- /**
271
- * A subscribed track is no longer available. Clients should listen to this
272
- * event and ensure they detach tracks.
273
- *
274
- * args: ([[RemoteTrack]], [[RemoteTrackPublication]])
275
- */
276
- TrackUnsubscribed = 'trackUnsubscribed',
277
-
278
- /**
279
- * A track that was muted, fires on both [[RemoteParticipant]]s and [[LocalParticipant]]
280
- *
281
- * args: ([[TrackPublication]])
282
- */
283
- TrackMuted = 'trackMuted',
284
-
285
- /**
286
- * A track that was unmuted, fires on both [[RemoteParticipant]]s and [[LocalParticipant]]
287
- *
288
- * args: ([[TrackPublication]])
289
- */
290
- TrackUnmuted = 'trackUnmuted',
291
-
292
- /**
293
- * A local track was published successfully. This event is helpful to know
294
- * when to update your local UI with the newly published track.
295
- *
296
- * args: ([[LocalTrackPublication]])
297
- */
298
- LocalTrackPublished = 'localTrackPublished',
299
-
300
- /**
301
- * A local track was unpublished. This event is helpful to know when to remove
302
- * the local track from your UI.
303
- *
304
- * When a user stops sharing their screen by pressing "End" on the browser UI,
305
- * this event will also fire.
306
- *
307
- * args: ([[LocalTrackPublication]])
308
- */
309
- LocalTrackUnpublished = 'localTrackUnpublished',
310
-
311
- /**
312
- * @deprecated Use ParticipantMetadataChanged instead
313
- * @internal
314
- */
315
- MetadataChanged = 'metadataChanged',
316
-
317
- /**
318
- * Participant metadata is a simple way for app-specific state to be pushed to
319
- * all users.
320
- * When RoomService.UpdateParticipantMetadata is called to change a participant's
321
- * state, *all* participants in the room will fire this event.
322
- * To access the current metadata, see [[Participant.metadata]].
323
- *
324
- * args: (prevMetadata: string)
325
- *
326
- */
327
- ParticipantMetadataChanged = 'participantMetadataChanged',
328
-
329
- /**
330
- * Data received from this participant as sender.
331
- * Data packets provides the ability to use LiveKit to send/receive arbitrary payloads.
332
- * All participants in the room will receive the messages sent to the room.
333
- *
334
- * args: (payload: Uint8Array, kind: [[DataPacket_Kind]])
335
- */
336
- DataReceived = 'dataReceived',
337
-
338
- /**
339
- * Has speaking status changed for the current participant
340
- *
341
- * args: (speaking: boolean)
342
- */
343
- IsSpeakingChanged = 'isSpeakingChanged',
344
-
345
- /**
346
- * Connection quality was changed for a Participant. It'll receive updates
347
- * from the local participant, as well as any [[RemoteParticipant]]s that we are
348
- * subscribed to.
349
- *
350
- * args: (connectionQuality: [[ConnectionQuality]])
351
- */
352
- ConnectionQualityChanged = 'connectionQualityChanged',
353
-
354
- /**
355
- * StreamState indicates if a subscribed track has been paused by the SFU
356
- * (typically this happens because of subscriber's bandwidth constraints)
357
- *
358
- * When bandwidth conditions allow, the track will be resumed automatically.
359
- * TrackStreamStateChanged will also be emitted when that happens.
360
- *
361
- * args: (pub: [[RemoteTrackPublication]], streamState: [[Track.StreamState]])
362
- */
363
- TrackStreamStateChanged = 'trackStreamStateChanged',
364
-
365
- /**
366
- * One of subscribed tracks have changed its permissions for the current
367
- * participant. If permission was revoked, then the track will no longer
368
- * be subscribed. If permission was granted, a TrackSubscribed event will
369
- * be emitted.
370
- *
371
- * args: (pub: [[RemoteTrackPublication]],
372
- * status: [[TrackPublication.SubscriptionStatus]])
373
- */
374
- TrackSubscriptionPermissionChanged = 'trackSubscriptionPermissionChanged',
375
-
376
- // fired only on LocalParticipant
377
- /** @internal */
378
- MediaDevicesError = 'mediaDevicesError',
379
-
380
- /**
381
- * A participant's permission has changed. Currently only fired on LocalParticipant.
382
- * args: (prevPermissions: [[ParticipantPermission]])
383
- */
384
- ParticipantPermissionsChanged = 'participantPermissionsChanged',
385
- }
386
-
387
- /** @internal */
388
- export enum EngineEvent {
389
- TransportsCreated = 'transportsCreated',
390
- Connected = 'connected',
391
- Disconnected = 'disconnected',
392
- Resuming = 'resuming',
393
- Resumed = 'resumed',
394
- Restarting = 'restarting',
395
- Restarted = 'restarted',
396
- SignalResumed = 'signalResumed',
397
- MediaTrackAdded = 'mediaTrackAdded',
398
- ActiveSpeakersUpdate = 'activeSpeakersUpdate',
399
- DataPacketReceived = 'dataPacketReceived',
400
- }
401
-
402
- export enum TrackEvent {
403
- Message = 'message',
404
- Muted = 'muted',
405
- Unmuted = 'unmuted',
406
- Ended = 'ended',
407
- /** @internal */
408
- UpdateSettings = 'updateSettings',
409
- /** @internal */
410
- UpdateSubscription = 'updateSubscription',
411
- /** @internal */
412
- AudioPlaybackStarted = 'audioPlaybackStarted',
413
- /** @internal */
414
- AudioPlaybackFailed = 'audioPlaybackFailed',
415
- /**
416
- * @internal
417
- * Only fires on LocalAudioTrack instances
418
- */
419
- AudioSilenceDetected = 'audioSilenceDetected',
420
- /** @internal */
421
- VisibilityChanged = 'visibilityChanged',
422
- /** @internal */
423
- VideoDimensionsChanged = 'videoDimensionsChanged',
424
- }