Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add changeBackgroundReplacementImage to BackgroundReplacementProvider #958

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

dingyishen-amazon
Copy link
Contributor

Issue #:

Description of changes:
Add changeBackgroundReplacementImage function in the BackgroundReplacementProvider to enable the functionality of changing the background replacement image.

Testing

  1. Have you successfully run npm run build:release locally?
    Yes

  2. How did you test these changes?
    Make corresponding changes in the demo app, and test with it. Demo Video attached:
    https://github.com/user-attachments/assets/20c92ebf-2d25-4375-870b-b4e00bf2cdbd

  3. If you made changes to the component library, have you provided corresponding documentation changes?
    No, will add the documentation change after the demo changes are merged since the documentation example should be similar with demo.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dingyishen-amazon dingyishen-amazon requested a review from a team as a code owner July 31, 2024 23:37
@michhyun1
Copy link
Contributor

Might need to squash the two commits

@dingyishen-amazon dingyishen-amazon force-pushed the background-replacement-image branch 2 times, most recently from 0f8e17e to bab26f6 Compare August 1, 2024 19:28
michhyun1
michhyun1 previously approved these changes Aug 1, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
@dingyishen-amazon dingyishen-amazon requested review from ltrung and removed request for ltrung August 1, 2024 21:17
Copy link
Contributor Author

@dingyishen-amazon dingyishen-amazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add logger.error on line 196 as @xuesichao requested

@dingyishen-amazon dingyishen-amazon merged commit f6978a3 into main Aug 1, 2024
2 checks passed
@dingyishen-amazon dingyishen-amazon deleted the background-replacement-image branch August 1, 2024 22:32
Copy link
Contributor

@ltrung ltrung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to update the story book documentation too?

@@ -40,6 +40,9 @@ interface BackgroundReplacementProviderState {
) => Promise<DefaultVideoTransformDevice>;
isBackgroundReplacementSupported: boolean | undefined;
backgroundReplacementProcessor: BackgroundReplacementProcessor | undefined;
changeBackgroundReplacementImage: (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add unit test for this file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants