Steps to enable Video Background Effects in ACS Web UI Library: #3984
prabhjot-msft
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are providing an optional way for developers to opt-in for features which require huge dependencies without adding to the bundle size. To enable Video Background Effects, there are two ways:
Tree-Shaking: By using this method, user can add the package while loading the app. Video effects package would be added to the main bundle. Steps:
Add import for dependency resolution for video effects:
Pass the dependency injection in AzureCommunicationCallAdapterOptions:
Lazy-Loading: By using this method, the video effects package will not be included in the main bundle. Separate chunk will be downloaded when video effects are used.
Note: lazy-loading only works if code splitting is enabled for the app.
Add import for dependency resolution for video effects:
Pass the dependency injection in AzureCommunicationCallAdapterOptions:
Beta Was this translation helpful? Give feedback.
All reactions