Skip to content

Commit 2a26eb6

Browse files
Merge pull request #267567 from KaranMish/main
Removing display name form Recording
2 parents 3b26ef9 + f197984 commit 2a26eb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ const isRecordingActiveChangedHandler = () => {
4040
callRecordingApi.on('isRecordingActiveChanged', isRecordingActiveChangedHandler);
4141
```
4242

43-
You can get a list of recordings by using the `recordings` property of `callRecordingApi`. It returns `RecordingInfo[]`, which has the display name of the user and the current state of the cloud recording.
43+
You can get a list of recordings by using the `recordings` property of `callRecordingApi`. It returns `RecordingInfo[]`, which has the current state of the cloud recording.
4444

4545
```js
4646
const recordings = callRecordingApi.recordings;
4747

4848
recordings.forEach(r => {
49-
console.log("User: ${r.displayName}, State: ${r.state}");
49+
console.log("State: ${r.state}");
5050
```
5151
5252
You can also subscribe to `recordingsUpdated` and get a collection of updated recordings. This event is triggered whenever there's a recording update.
@@ -55,12 +55,12 @@ You can also subscribe to `recordingsUpdated` and get a collection of updated re
5555
const cloudRecordingsUpdatedHandler = (args: { added: SDK.RecordingInfo[], removed: SDK.RecordingInfo[]}) => {
5656
console.log('Recording started by: ');
5757
args.added?.forEach(a => {
58-
console.log('User: ${a.displayName}');
58+
console.log('State: ${a.state}');
5959
});
6060

6161
console.log('Recording stopped by: ');
6262
args.removed?.forEach(r => {
63-
console.log('User: ${r.displayName}');
63+
console.log('State: ${r.state}');
6464
});
6565
};
6666
callRecordingApi.on('recordingsUpdated', cloudRecordingsUpdatedHandler );

0 commit comments

Comments
 (0)