jitsi / lib-jitsi-meet

A low-level JS video API that allows adding a completely custom video experience to web apps.
Apache License 2.0
1.34k stars 1.11k forks source link

Unable to Implement Video Background Blur and Virtual Background using lib-jitsi-meet API #2251

Closed ajirthanbalasingham closed 1 year ago

ajirthanbalasingham commented 1 year ago

I'm currently working on a video conferencing application using the lib-jitsi-meet API, and I'm having trouble implementing the video background blur and virtual background features. I have tried to follow the documentation and examples provided by the API, but I'm still not able to get these features to work.

I would really appreciate some guidance or assistance on how to properly implement these features using the lib-jitsi-meet API. Specifically, I would like to know which API functions or parameters I need to use, and how to properly configure them.

Thank you very much for your help!

saghul commented 1 year ago

Virtual backgrounds / blur are implemented using our "effects" API. Specificallt, the JitsiLocalTrack.setEffect API call. You can use our own implementation as a guideline: https://github.com/jitsi/jitsi-meet/blob/master/react/features/stream-effects/virtual-background/JitsiStreamBackgroundEffect.js

icc-guerrero commented 1 year ago

Im using lib-jitsi-meet in a React Native app (using polyfills and react-native-webrtc). Would it be possible to use this? Any example?

saghul commented 1 year ago

It's not possible to implement like that on RN. It needs to be implemented natively for performance.

saghul commented 1 year ago

Closing since the original issue is not an issue with LJM.