Skip to content

Commit 5649f22

Browse files
Create record-calls-windows-md
1 parent 109269d commit 5649f22

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
author: jsaurezlee-msft
3+
ms.service: azure-communication-services
4+
ms.topic: article
5+
ms.date: 30/05/2023
6+
ms.author: jsaurezlee
7+
---
8+
9+
[!INCLUDE [Install SDK](../install-sdk/install-sdk-windows.md)]
10+
11+
## Record calls
12+
13+
Call recording is an extended feature of the core `Call` object. You first need to obtain the recording feature object:
14+
15+
```csharp
16+
RecordingCallFeature recordingFeature = call.Features.Recording;
17+
```
18+
19+
Then, to check if the call is being recorded, inspect the `IsRecordingActive` property of `recordingFeature`. It returns `boolean`.
20+
21+
```csharp
22+
boolean isRecordingActive = recordingFeature.IsRecordingActive;
23+
```
24+
25+
You can also subscribe to recording changes:
26+
27+
```csharp
28+
private async void Call__OnIsRecordingActiveChanged(object sender, PropertyChangedEventArgs args)
29+
boolean isRecordingActive = recordingFeature.IsRecordingActive;
30+
}
31+
32+
recordingFeature.IsRecordingActiveChanged += Call__OnIsRecordingActiveChanged;
33+
```

0 commit comments

Comments
 (0)