Skip to content

Commit b3e1b07

Browse files
add snippet for web event
1 parent 236d725 commit b3e1b07

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ When incoming audio is muted, the participant client SDK still receives the call
162162

163163
## Mute other participants
164164
> [!NOTE]
165-
> This API is provided as a preview for developers and may change based on feedback that we receive. To use this API please use 'beta' release of Azure Communication Services Calling Web SDK version 1.18.1 or higher.
165+
> This API is provided as a preview for developers and may change based on feedback that we receive. To use this API please use 'beta' release of Azure Communication Services Calling Web SDK version 1.24.1 or higher.
166166
167167
To mute all other participants or mute a specific participant, you can use the asynchronous APIs `muteAllRemoteParticipants` on the call and `mute` on the remote participant. The `mutedByOthers` event from Call is raised when the local participant has been muted by others.
168168

@@ -172,6 +172,11 @@ await call.muteAllRemoteParticipants();
172172

173173
//mute a specific participant
174174
await call.remoteParticipants[0].mute();
175+
176+
// Subscribe to mutedByOthers event and notify local participant they have been muted
177+
call.on('mutedByOthers', () => {
178+
console.log("You have been muted");
179+
});
175180
```
176181

177182
## Manage remote participants

0 commit comments

Comments
 (0)