You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/how-tos/calling-sdk/includes/manage-calls/manage-calls-ios.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,6 +178,35 @@ call!.unmute { (error) in
178
178
}
179
179
```
180
180
181
+
## Mute other participants
182
+
> [!NOTE]
183
+
> This API is provided as a public preview for developers and may change based on feedback that we receive.
184
+
185
+
To mute all other participants in a call, use the `muteAllRemoteParticipants` API on the call.
186
+
187
+
```swift
188
+
call!.muteAllRemoteParticipants { (error) in
189
+
if error ==nil {
190
+
print("Successfully muted all remote participants.")
191
+
} else {
192
+
print("Failed to mute remote participants.")
193
+
}
194
+
}
195
+
```
196
+
197
+
To mute a specific remote participant, use the `mute` API on a given remote participant.
198
+
199
+
```swift
200
+
remoteParticipant.mute { (error) in
201
+
if error ==nil {
202
+
print("Successfully muted participant.")
203
+
} else {
204
+
print("Failed to mute participant.")
205
+
}
206
+
}
207
+
```
208
+
209
+
181
210
## Manage remote participants
182
211
183
212
All remote participants are represented by the `RemoteParticipant` type and are available through the `remoteParticipants` collection on a call instance.
0 commit comments