Skip to content

Commit

Permalink
Add Video Effects Pane to Call Composite (#2883)
Browse files Browse the repository at this point in the history
* Add Video Effects Pane to Call Composite

* Change files

* Duplicate change files for beta release
  • Loading branch information
prabhjot-msft authored Apr 3, 2023
1 parent d7f7aff commit 53d6e76
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Add Video Effects Pane to Call Composite",
"packageName": "@azure/communication-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Add Video Effects Pane to Call Composite",
"packageName": "@azure/communication-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ import { useCallWithChatCompositeStrings } from '../../CallWithChatComposite/hoo
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
import { getPage } from '../selectors/baseSelectors';
import { drawerContainerStyles } from '../styles/CallComposite.styles';
/* @conditional-compile-remove(video-background-effects) */
import { VideoEffectsPane } from '../../common/VideoEffectsPane';

/**
* @private
Expand Down Expand Up @@ -130,6 +132,17 @@ export const CallArrangement = (props: CallArrangementProps): JSX.Element => {
[callWithChatStrings]
);

/* @conditional-compile-remove(video-background-effects) */
const [showVideoEffectsPane, setVideoEffectsPane] = useState(false);

/* @conditional-compile-remove(video-background-effects) */
const setShowVideoEffectsPane = useCallback(
(showVideoEffectsOptions: boolean): void => {
setVideoEffectsPane(showVideoEffectsOptions);
},
[setVideoEffectsPane]
);

const [showDrawer, setShowDrawer] = useState(false);
const onMoreButtonClicked = useCallback(() => {
closePane();
Expand Down Expand Up @@ -253,6 +266,8 @@ export const CallArrangement = (props: CallArrangementProps): JSX.Element => {
peopleButtonChecked={activePane === 'people'}
onPeopleButtonClicked={togglePeoplePane}
onMoreButtonClicked={onMoreButtonClicked}
/* @conditional-compile-remove(video-background-effects) */
onShowVideoEffectsPicker={setShowVideoEffectsPane}
/>
)}
</Stack.Item>
Expand Down Expand Up @@ -311,6 +326,14 @@ export const CallArrangement = (props: CallArrangementProps): JSX.Element => {
callPaneContent()
}
</Stack>
{
/* @conditional-compile-remove(video-background-effects) */
<VideoEffectsPane
showVideoEffectsOptions={showVideoEffectsPane}
setshowVideoEffectsOptions={setShowVideoEffectsPane}
adapter={adapter}
/>
}
</Stack>
</Stack>
</div>
Expand Down

0 comments on commit 53d6e76

Please sign in to comment.