Skip to content

Commit bdb591a

Browse files
authored
Merge pull request #264289 from rzdor/main
add compliance recording
2 parents c8efbfb + 9c92300 commit bdb591a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

articles/communication-services/how-tos/calling-sdk/record-calls.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,29 @@ zone_pivot_groups: acs-plat-web-ios-android-windows
4444
[!INCLUDE [Record Calls Client-side Windows](./includes/record-calls/record-calls-windows.md)]
4545
::: zone-end
4646

47+
### Compliance Recording
48+
Compliance recording is Teams policy based recording that could be enabled using this tutorial: [Introduction to Teams policy-based recording for callings](/microsoftteams/teams-recording-policy).<br>
49+
Policy based recording will be started automatically when user with this policy will join a call. To get notification from Azure Communication Service about recording - we can use Cloud Recording section from this article.
50+
51+
```js
52+
const callRecordingApi = call.feature(Features.Recording);
53+
54+
const isComplianceRecordingActive = callRecordingApi.isRecordingActive;
55+
56+
const isComplianceRecordingActiveChangedHandler = () => {
57+
console.log(callRecordingApi.isRecordingActive);
58+
};
59+
60+
callRecordingApi.on('isRecordingActiveChanged', isComplianceRecordingActiveChangedHandler);
61+
```
62+
63+
Compliance recording could be implemented by using custom recording bot [GitHub Example](https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/a3943bafd73ce0df780c0e1ac3428e3de13a101f/Samples/BetaSamples/LocalMediaSamples/ComplianceRecordingBot).<br>
64+
To hide this bot from participant roster we need to add specific metadata information, it will be used by Azure Communication SDK and Teams client:
65+
```json
66+
"metadata": {"__platform":{"ui":{"hidden":true}
67+
```
68+
69+
4770
## Next steps
4871
- [Learn how to manage calls](./manage-calls.md)
4972
- [Learn how to manage video](./manage-video.md)

0 commit comments

Comments
 (0)