Skip to content

Commit 797667f

Browse files
authored
Update events-web.md
1 parent d66f0af commit 797667f

File tree

1 file changed

+16
-12
lines changed
  • articles/communication-services/how-tos/calling-sdk/includes/events

1 file changed

+16
-12
lines changed

articles/communication-services/how-tos/calling-sdk/includes/events/events-web.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,16 @@ You can subscribe to the '\<collection>Updated' event to receive notifications a
4040
In this example, we subscribe to changes in values of the Call object `LocalVideoStream`.
4141

4242
```javascript
43-
call.on('localVideoStreamsUpdated', updateEvent => {
43+
call.on('localVideoStreamsUpdated', updateEvent => {
4444
updateEvent.added.forEach(async (localVideoStream) => {
45-
console.log(`e.added contains an array of LocalVideoStream that were added to the call`);
45+
// Contains an array of LocalVideoStream that were added to the call
46+
// Add a preview and start any processing if needed
47+
handleAddedLocalVideoStream(localVideoStream )
4648
});
4749
updateEvent.removed.forEach(localVideoStream => {
48-
console.log(`e.removed contains an array of LocalVideoStream that were removed from the call`);
50+
// Contains an array of LocalVideoStream that were removed from the call
51+
// Remove the preview and stop any processing if needed
52+
handleRemovedLocalVideoStream(localVideoStream )
4953
});
5054
});
5155
```
@@ -55,7 +59,7 @@ In this example, we subscribe to changes in values of the Call object `LocalVide
5559

5660
### Event Name: `incomingCall`
5761

58-
The `incomingCall` event fires when a call is coming.
62+
The `incomingCall` event fires when the client is receiving an incoming call.
5963

6064
**How should your application react to the event?**
6165

@@ -78,14 +82,14 @@ callClient.on('incomingCall', (async (incomimgCallEvent) => {
7882
7983
### Event Name: `callsUpdated`
8084
81-
The `callsUpdated` updated event is fired when a call is removed or added to the call agent. This event happens when the user makes, receives, or terminate call.
85+
The `callsUpdated` updated event is fired when a call is removed or added to the call agent. This event happens when the user makes, receives, or terminates a call.
8286
8387
**How should your application react to the event?**
8488
Your application should update its UI based on the number of active calls for the CallAgent instance.
8589
8690
### Event Name: `connectionStateChanged`
8791
88-
The `connectionStateChanged` event fired when the state of the `CallAgent` is updated.
92+
The `connectionStateChanged` event fired when the signaling state of the `CallAgent` is updated.
8993
9094
**How should your application react to the event?**
9195
@@ -155,7 +159,7 @@ call.on('idChanged', (async (callIdChangedEvent) => {
155159
156160
### Event: `isMutedChanged`
157161
158-
The `isMutedChanged` event is fired when the call is muted or unmuted.
162+
The `isMutedChanged` event is fired when the local audio is muted or unmuted.
159163
160164
**How might your application react to the event?**
161165
@@ -212,7 +216,7 @@ call.on('isLocalVideoStartedChanged', () => {
212216
213217
### Event: `remoteParticipantsUpdated`
214218
215-
Your application should subscribe to event for each added `RemoteParticipants` and unsubscribe of events for participant that are gone from the call.
219+
Your application should subscribe to event for each added `RemoteParticipants` and unsubscribe of events for participants that have left the call.
216220
217221
**How might your application react to the event?**
218222
Your application should show a preview of the local video and enable or disable the camera activation button.
@@ -263,7 +267,7 @@ call.on('localVideoStreamsUpdated', (localVideoStreamUpdatedEvent) => {
263267
264268
### Event: `remoteAudioStreamsUpdated`
265269
266-
The `remoteAudioStreamsUpdated` event is fired when the list of remote audio stream. These changes happen when remote participants add or remove audio streams to the call.
270+
The `remoteAudioStreamsUpdated` event is fired when the list of remote audio stream changes. These changes happen when remote participants add or remove audio streams to the call.
267271
268272
**How might your application react to the event?**
269273
@@ -305,7 +309,7 @@ call.on('roleChanged', () => {
305309
306310
### Event: `mutedByOthers`
307311
308-
The `mutedByOthers` event happens when other participants in the call muted the local participant.
312+
The `mutedByOthers` event happens when other participants in the call are muted by the local participant.
309313
310314
311315
**How might your application react to the event?**
@@ -416,7 +420,7 @@ remoteParticipant.on('videoStreamsUpdated', (videoStreamsUpdatedEvent) => {
416420
417421
### Event: `effectsStarted`
418422
419-
This event occurs when the audio effect selected is applied to the audio stream.
423+
This event occurs when the audio effect selected is applied to the audio stream. For example, when someone turns on Noise Suppression the `effectsStarted` will be fired.
420424
421425
**How might your application react to the event?**
422426
@@ -432,7 +436,7 @@ audioEffectsFeature.on('effectsStarted', (effects) => {
432436
433437
### Event: `effectsStopped`
434438
435-
This event occurs when the audio effect selected is applied to the audio stream.
439+
This event occurs when the audio effect selected is applied to the audio stream. For example, when someone turns off Noise Suppression the `effectsStopped` will be fired.
436440
437441
**How might your application react to the event?**
438442

0 commit comments

Comments
 (0)