Skip to content

Commit 169ce91

Browse files
Merge pull request #238045 from sloanster/master
Updated to include activeEffects details
2 parents f22fc09 + dd0e9b4 commit 169ce91

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/communication-services/quickstarts/voice-video-calling/includes/video-effects/video-effects-javascript.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ await videoEffectsFeatureApi.startEffects(backgroundBlurEffect);
120120
await videoEffectsFeatureApi.startEffects(backgroundReplacementEffect);
121121
```
122122

123+
At anytime if you want to check what effects are active, you can use the `activeEffects` property.
124+
The `activeEffects` property returns an array with the names of the current active effects, and returns an empty array if there are no effects active.
125+
```js
126+
// Using the video effects feature api
127+
const currentActiveEffects = videoEffectsFeatureApi.activeEffects;
128+
```
129+
123130
To stop effects:
124131
```js
125132
await videoEffectsFeatureApi.stopEffects();

0 commit comments

Comments
 (0)