Skip to content

Commit 199cbe1

Browse files
update remote participant management section
1 parent 65b7da2 commit 199cbe1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

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

Lines changed: 4 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,8 @@ 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: 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.
627+
624628
### Remote video stream updates
625629

626630
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,8 @@ 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: 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.
636+
635637
We can implement a `RemoteParticipantObserver` class to subscribe to the updates on remote video streams of remote participants.
636638

637639
```Swift

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ call = await incomingCall.AcceptAsync(acceptCallOptions);
899899
### Remote participant and remote video streams
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.
902+
> Note: 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.
902903
903904
```C#
904905
private async void Call_OnVideoStreamsUpdatedAsync(object sender, RemoteVideoStreamsEventArgs args)

0 commit comments

Comments
 (0)