Skip to content

Commit 7865b65

Browse files
Merge pull request #281314 from chengyuanlai-msft/patch-5
Update ACS Native SDK doc
2 parents 830bf0f + 5986616 commit 7865b65

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

articles/communication-services/quickstarts/voice-video-calling/includes/video-calling/video-calling-android.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ private void answerIncomingCall() {
610610

611611
## Remote participant and remote video streams
612612

613+
All remote participants are available through the `getRemoteParticipants()` method on a call instance. Once the call is connected, we can access the remote participants of the call and handle the remote video streams.
614+
613615
When you start a call or answer an incoming call, you need to subscribe to the `addOnRemoteParticipantsUpdatedListener` event to handle remote participants.
614616

615617
```java
@@ -621,6 +623,9 @@ When you use event listeners that are defined within the same class, bind the li
621623

622624
If you try to pass the listener in directly as an argument, you lose the reference to that listener. Java creates new instances of these listeners, not referencing previously created ones. You can't remove prior instances, because you don’t have a reference to them.
623625

626+
> [!NOTE]
627+
> When a user joins a call, they can access the current remote participants through the `getRemoteParticipants()` method. The `addOnRemoteParticipantsUpdatedListener` event will not trigger for these existing participants. This event will only trigger when a remote participant joins or leaves the call while the user is already in the call.
628+
624629
### Remote video stream updates
625630

626631
For 1:1 calling, you need to handle added participants. When you remove the remote participant, the call ends. For added participants, you subscribe to `addOnVideoStreamsUpdatedListener` to handle video stream updates.

articles/communication-services/quickstarts/voice-video-calling/includes/video-calling/video-calling-ios.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,9 @@ public class CallObserver: NSObject, CallDelegate, IncomingCallDelegate {
632632

633633
All remote participants are represented with the `RemoteParticipant` type and are available through the `remoteParticipants` collection on a call instance.
634634

635+
> [!NOTE]
636+
> When a user joins a call, they can access the current remote participants through the `RemoteParticipants` collection. The `didUpdateRemoteParticipant` event will not trigger for these existing participants. This event will only trigger when a remote participant joins or leaves the call while the user is already in the call.
637+
635638
We can implement a `RemoteParticipantObserver` class to subscribe to the updates on remote video streams of remote participants.
636639

637640
```Swift

articles/communication-services/quickstarts/voice-video-calling/includes/video-calling/video-calling-windows.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,9 @@ call = await incomingCall.AcceptAsync(acceptCallOptions);
900900

901901
All remote participants are available through the `RemoteParticipants` collection on a call instance. Once the call is connected, we can access the remote participants of the call and handle the remote video streams.
902902

903+
> [!NOTE]
904+
> When a user joins a call, they can access the current remote participants through the `RemoteParticipants` collection. The `OnRemoteParticipantsUpdated` event will not trigger for these existing participants. This event will only trigger when a remote participant joins or leaves the call while the user is already in the call.
905+
903906
```C#
904907
private async void Call_OnVideoStreamsUpdatedAsync(object sender, RemoteVideoStreamsEventArgs args)
905908
{

0 commit comments

Comments
 (0)