Skip to content

Commit ee0f511

Browse files
Apply suggestions from code review
Co-authored-by: tomaschladek <[email protected]>
1 parent fd4c8d7 commit ee0f511

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Then, to check if the call is being recorded locally, inspect the `isLocalRecord
3333
const isLocalRecordingActive = localCallRecordingApi.isLocalRecordingActive;
3434
```
3535

36-
You can also get a list of local recordings by using the `localRecordings` property of `localCallRecordingApi`. It returns `LocalRecordingInfo[]` which will have the desplayName of the user and current state of the local recording.
36+
You can also get a list of local recordings by using the `localRecordings` property of `localCallRecordingApi`. It returns `LocalRecordingInfo[]` which will have the displayName of the user and current state of the local recording.
3737

3838
```js
3939
const recordings = localCallRecordingApi.localRecordings;
@@ -55,7 +55,7 @@ localCallRecordingApi.on('isLocalRecordingActiveChanged', isLocalRecordingActive
5555
You can also subscribe to `localRecordingsUpdated` and get a collection of updated recordings. This event is triggered whenever there is a recording update
5656
5757
```js
58-
const localRecordingsUpdateddHandler = (args: { added: SDK.LocalRecordingInfo[], removed: SDK.LocalRecordingInfo[]}) => {
58+
const localRecordingsUpdatedHandler = (args: { added: SDK.LocalRecordingInfo[], removed: SDK.LocalRecordingInfo[]}) => {
5959
console.log('Local recording started by: ');
6060
args.added?.forEach(a => {
6161
console.log('User: ${a.displayName}');
@@ -66,5 +66,5 @@ const localRecordingsUpdateddHandler = (args: { added: SDK.LocalRecordingInfo[],
6666
console.log('User: ${r.displayName});
6767
});
6868
};
69-
localCallRecordingApi.on('localRecordingsUpdated', localRecordingsUpdateddHandler);
69+
localCallRecordingApi.on('localRecordingsUpdated', localRecordingsUpdatedHandler);
7070
```

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

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

43-
You can also get a list of recordings by using the `recordings` property of `callRecordingApi`. It returns `RecordingInfo[]` which will have the desplayName of the user and current state of the local recording.
43+
You can also get a list of recordings by using the `recordings` property of `callRecordingApi`. It returns `RecordingInfo[]` which will have the displayName of the user and current state of the cloud recording.
4444

4545
```js
4646
const recordings = callRecordingApi.recordings;
@@ -52,7 +52,7 @@ recordings.forEach(r => {
5252
You can also subscribe to 'recordingsUpdated' and get a collection of updated recordings. This event is triggered whenever there is a recording update
5353
5454
```js
55-
const recordingsUpdateddHandler = (args: { added: SDK.RecordingInfo[], removed: SDK.RecordingInfo[]}) => {
55+
const cloudRecordingsUpdatedHandler = (args: { added: SDK.RecordingInfo[], removed: SDK.RecordingInfo[]}) => {
5656
console.log('Recording started by: ');
5757
args.added?.forEach(a => {
5858
console.log('User: ${a.displayName}');
@@ -63,5 +63,5 @@ const recordingsUpdateddHandler = (args: { added: SDK.RecordingInfo[], removed:
6363
console.log('User: ${r.displayName});
6464
});
6565
};
66-
callRecordingApi.on('recordingsUpdated', recordingsUpdateddHandler);
66+
callRecordingApi.on('recordingsUpdated', cloudRecordingsUpdatedHandler );
6767
```

0 commit comments

Comments
 (0)