Steps to enable Video Background Effects in ACS Web UI Library: #3984
Replies: 2 comments 3 replies
-
Hi Can you please confirm onResolveVideoEffectDependencyLazy will work with callWithChatComposite.js or not, we are modifying the file and add the video background code here, and creating the file with rushx build
when we are using the file it is giving but if we use onResolveVideoEffectDependency only it is working, but the file size is increasing. |
Beta Was this translation helpful? Give feedback.
-
@souvickcse @Rohanfulzele here is a solution you can try, creating a separate JS dependency injection for |
Beta Was this translation helpful? Give feedback.
-
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