Skip to content

Commit 1bb3a11

Browse files
Merge pull request #225515 from sloanster/patch-11
Update video-effects.md
2 parents 1f98cdb + b3c44f5 commit 1bb3a11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/communication-services/concepts/voice-video-calling/video-effects.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ To use video effects with the Azure Communication Calling client library, once y
6767
### Code examples
6868
```js
6969
import * as AzureCommunicationCallingSDK from '@azure/communication-calling';
70-
import { BackgroundBlur, BackgroundReplacement } from '@azure/communication-calling-effects';
70+
import { BackgroundBlurEffect, BackgroundReplacementEffect } from '@azure/communication-calling-effects';
7171

7272
/** Assuming you have initialized the Azure Communication Calling client library and have created a LocalVideoStream
7373
(reference <link to main SDK npm>)
@@ -92,7 +92,7 @@ videoEffectsFeatureApi.on(‘effectsError’, (error) => {
9292
});
9393

9494
// Create the effect instance
95-
const backgroundBlurEffect = new BackgroundBlur();
95+
const backgroundBlurEffect = new BackgroundBlurEffect();
9696

9797
// Recommended: Check if backgroundBlur is supported
9898
const backgroundBlurSupported = await backgroundBlurEffect.isSupported();
@@ -114,7 +114,7 @@ Supported image formats are – png, jpg, jpeg, tiff, bmp.
114114
const backgroundImage = 'https://linkToImageFile';
115115

116116
// Create the effect instance
117-
const backgroundReplacementEffect = new BackgroundReplacement({
117+
const backgroundReplacementEffect = new BackgroundReplacementEffect({
118118

119119
backgroundImageUrl: backgroundImage
120120

0 commit comments

Comments
 (0)