Skip to content

Commit 7870bdb

Browse files
Merge pull request #253700 from minnieliu/peiliu/nativeMuteOhters
Add the changes for Native Mute Others - beta
2 parents bbd9e5d + fe90534 commit 7870bdb

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

articles/communication-services/concepts/voice-video-calling/calling-sdk-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The following list presents the set of features that are currently available in
4444
| | Invite another VoIP participant to join an ongoing group call | ✔️ | ✔️ | ✔️ | ✔️ |
4545
| Mid call control | Turn your video on/off | ✔️ | ✔️ | ✔️ | ✔️ |
4646
| | Mute/Unmute mic | ✔️ | ✔️ | ✔️ | ✔️ |
47-
| | Mute other participants |✔️<sup>1</sup> | ✔️<sup>1</sup> | | |
47+
| | Mute other participants |✔️<sup>1</sup> | ✔️<sup>1</sup> | ✔️<sup>1</sup> | ✔️<sup>1</sup> |
4848
| | Switch between cameras | ✔️ | ✔️ | ✔️ | ✔️ |
4949
| | Local hold/un-hold | ✔️ | ✔️ | ✔️ | ✔️ |
5050
| | Active speaker | ✔️ | ✔️ | ✔️ | ✔️ |

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,23 @@ Context appContext = this.getApplicationContext();
171171
call.mute(appContext).get();
172172
call.unmute(appContext).get();
173173
```
174+
175+
## Mute other participants
176+
> [!NOTE]
177+
> This API is provided as a public preview for developers and may change based on feedback that we receive.
178+
179+
To mute all other participants in a call, use the `muteAllRemoteParticipants` API on the call.
180+
181+
```java
182+
call.muteAllRemoteParticipants();
183+
```
184+
185+
To mute a specific remote participant, use the `mute` API on a given remote participant.
186+
187+
```java
188+
remoteParticipant.mute();
189+
```
190+
174191
## Change the volume of the call
175192

176193
While you are in a call, the hardware volume keys on the phone should allow the user to change the call volume.

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,35 @@ call!.unmute { (error) in
178178
}
179179
```
180180

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+
181210
## Manage remote participants
182211

183212
All remote participants are represented by the `RemoteParticipant` type and are available through the `remoteParticipants` collection on a call instance.

0 commit comments

Comments
 (0)