Need to stop the voice focus transformer on unmount to prevent memory leak. BG Blur and BG Replacement do the same already.
Stop initializing a BG Blur and BG Replacement on mount. It's not being used anyways.
Testing
Have you successfully run npm run build:release locally?
Yes
How did you test these changes?
In the meeting demo, join a meeting with Web Audio enabled. Then, leave the meeting.
Then, open the Task Manager for Chrome and see that the chrome tab that is running the meeting demo has one dedicated worker. Then, disable Web Audio checkbox. Verify that the worker thread has been killed.
If you made changes to the component library, have you provided corresponding documentation changes?
Yes
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #:
Description of changes: Related to: https://github.com/aws/amazon-chime-sdk-js/pull/2526
Need to stop the voice focus transformer on unmount to prevent memory leak. BG Blur and BG Replacement do the same already.
Stop initializing a BG Blur and BG Replacement on mount. It's not being used anyways.
Testing
Have you successfully run
npm run build:release
locally? YesHow did you test these changes? In the meeting demo, join a meeting with Web Audio enabled. Then, leave the meeting.
Then, open the Task Manager for Chrome and see that the chrome tab that is running the meeting demo has one dedicated worker. Then, disable Web Audio checkbox. Verify that the worker thread has been killed.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.