Skip to content

Commit 8c08b08

Browse files
authored
Merge pull request #185675 from tomaschladek/patch-2
Update record-calls-web.md
2 parents 3f488f1 + 8133ef4 commit 8c08b08

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ ms.author: rifox
1111
> [!NOTE]
1212
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment. To use this api please use 'beta' release of ACS Calling Web SDK
1313
14-
Call recording is an extended feature of the core `Call` API. You first need to obtain the recording feature API object:
14+
Call recording is an extended feature of the core `Call` API. You first need to import calling Features from the Calling SDK:
1515

1616
```js
17-
const callRecordingApi = call.feature(Features.Recording);
17+
import { Features} from "@azure/communication-calling";
18+
```
19+
20+
Then you can get the recording feature API object from the call instance:
21+
22+
```js
23+
const callTransferApi = call.feature(Features.Recording);
1824
```
1925

2026
Then, to check if the call is being recorded, inspect the `isRecordingActive` property of `callRecordingApi`. It returns `Boolean`.

0 commit comments

Comments
 (0)