File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
articles/communication-services/how-tos/calling-sdk/includes/record-calls Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments