Skip to content

Commit

Permalink
add CC
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhjot-msft committed Aug 13, 2024
1 parent e7b9458 commit c871d87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { _isInLobbyOrConnecting } from '@internal/calling-component-bindings';
import { ControlBar, DevicesButton, ParticipantMenuItemsCallback } from '@internal/react-components';
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
import { HoldButton } from '@internal/react-components';
import React, { useCallback, useMemo } from 'react';
import React, { useMemo } from 'react';
/* @conditional-compile-remove(DNS) */
import { useCallback } from 'react';
import { CallControlOptions } from '../types/CallControlOptions';
import { Camera } from './buttons/Camera';
import { Devices } from './buttons/Devices';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,11 @@ const createCompositeHandlers = memoizeOne(
};
return await adapter.startVideoBackgroundEffect(replacementConfig);
},
/* @conditional-compile-remove(DNS) */
onStartNoiseSuppressionEffect: async () => {
return await adapter.startNoiseSuppressionEffect();
},
/* @conditional-compile-remove(DNS) */
onStopNoiseSuppressionEffect: async () => {
return await adapter.stopNoiseSuppressionEffect();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,13 @@ export const VideoEffectsPaneContent = (props: {
type: 'blur',
timestamp: new Date(Date.now())
});
await adapter.startNoiseSuppressionEffect();
await adapter.startVideoBackgroundEffect(blurEffect);
await adapter.startNoiseSuppressionEffect();
adapter.updateSelectedVideoBackgroundEffect(blurEffect);
} else if (effectKey === 'none') {
const noneEffect: VideoBackgroundNoEffect = {
effectName: effectKey
};
await adapter.stopNoiseSuppressionEffect();
await adapter.stopVideoBackgroundEffects();
await adapter.stopNoiseSuppressionEffect();
adapter.updateSelectedVideoBackgroundEffect(noneEffect);
} else {
const backgroundImg = selectableVideoEffects.find((effect) => {
Expand Down

0 comments on commit c871d87

Please sign in to comment.