Skip to content

Commit a8aecd2

Browse files
authored
Update video-calling-unity.md
Update video calling unity quickstart
1 parent d66f875 commit a8aecd2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ ms.author: DaybreakQuip
88

99
In this quickstart, you learn how to start a call using the Azure Communication Services Calling SDK for Unity. For receiving and rendering video frames on the Unity platform, refer to the [Raw Media Access Quickstart](../../get-started-raw-media-access.md).
1010

11+
You can download the sample app from [GitHub](https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/RawVideo).
12+
1113
### Prerequisites
1214

1315
To complete this tutorial, you need the following prerequisites:
@@ -1847,7 +1849,7 @@ public class AppManager : MonoBehaviour
18471849
private CallClient callClient;
18481850
private CallAgent callAgent;
18491851
private DeviceManager deviceManager;
1850-
private Call call;
1852+
private CommunicationCall call;
18511853
private LocalOutgoingAudioStream micStream;
18521854
private LocalVideoStream cameraStream;
18531855

@@ -1891,7 +1893,7 @@ public class AppManager : MonoBehaviour
18911893
// Handle incoming call event
18921894
}
18931895

1894-
private async void OnStateChangedAsync(object sender, PropertyChangedEventArgs args)
1896+
private async void OnStateChangedAsync(object sender, Azure.Communication.Calling.UnityClient.PropertyChangedEventArgs args)
18951897
{
18961898
// Handle connected and disconnected state change of a call
18971899
}
@@ -2137,9 +2139,9 @@ private async void OnIncomingCallAsync(object sender, IncomingCallReceivedEventA
21372139
`StateChanged` event on `Call` object is fired when an in progress call transactions from one state to another. Application is offered the opportunities to reflect the state changes on UI or insert business logics.
21382140

21392141
```C#
2140-
private async void OnStateChangedAsync(object sender, PropertyChangedEventArgs args)
2142+
private async void OnStateChangedAsync(object sender, Azure.Communication.Calling.UnityClient.PropertyChangedEventArgs args)
21412143
{
2142-
var call = sender as Call;
2144+
var call = sender as CommunicationCall;
21432145

21442146
if (call != null)
21452147
{

0 commit comments

Comments
 (0)