Skip to content

Commit 29cde92

Browse files
authored
Merge pull request #185367 from DaybreakQuip/patch-1
Update video-calling-windows.md
2 parents 06d912f + 50eee68 commit 29cde92

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ namespace CallingQuickstart
127127
Call call;
128128
DeviceManager deviceManager;
129129
LocalVideoStream[] localVideoStream;
130+
Dictionary<String, RemoteParticipant> remoteParticipantDictionary;
130131
}
131132
}
132133
```
@@ -251,6 +252,8 @@ private async void Agent_OnCallsUpdated(object sender, CallsUpdatedEventArgs arg
251252
{
252253
foreach (var remoteParticipant in call.RemoteParticipants)
253254
{
255+
String remoteParticipantMRI = remoteParticipant.Identifier.ToString();
256+
remoteParticipantDictionary.TryAdd(remoteParticipantMRI, remoteParticipant);
254257
await AddVideoStreams(remoteParticipant.VideoStreams);
255258
remoteParticipant.OnVideoStreamsUpdated += async (s, a) => await AddVideoStreams(a.AddedRemoteVideoStreams);
256259
}
@@ -263,6 +266,8 @@ private async void Call_OnRemoteParticipantsUpdated(object sender, ParticipantsU
263266
{
264267
foreach (var remoteParticipant in args.AddedParticipants)
265268
{
269+
String remoteParticipantMRI = remoteParticipant.Identifier.ToString();
270+
remoteParticipantDictionary.TryAdd(remoteParticipantMRI, remoteParticipant);
266271
await AddVideoStreams(remoteParticipant.VideoStreams);
267272
remoteParticipant.OnVideoStreamsUpdated += async (s, a) => await AddVideoStreams(a.AddedRemoteVideoStreams);
268273
}

0 commit comments

Comments
 (0)