Skip to content

Commit e4d276d

Browse files
authored
Merge pull request #207270 from DaybreakQuip/patch-3
Update video-calling-windows.md
2 parents e6663b1 + ea85f16 commit e4d276d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ private async void CallButton_ClickAsync(object sender, RoutedEventArgs e)
214214
};
215215

216216
call = await callAgent.StartCallAsync(callees, startCallOptions);
217+
call.OnRemoteParticipantsUpdated += Call_OnRemoteParticipantsUpdated;
218+
call.OnStateChanged += Call_OnStateChanged;
217219
}
218220
```
219221

@@ -266,8 +268,6 @@ private async void Agent_OnCallsUpdated(object sender, CallsUpdatedEventArgs arg
266268
await AddVideoStreams(remoteParticipant.VideoStreams);
267269
remoteParticipant.OnVideoStreamsUpdated += async (s, a) => await AddVideoStreams(a.AddedRemoteVideoStreams);
268270
}
269-
call.OnRemoteParticipantsUpdated += Call_OnRemoteParticipantsUpdated;
270-
call.OnStateChanged += Call_OnStateChanged;
271271
}
272272
}
273273

0 commit comments

Comments
 (0)