Open source video conferencing app powered by LiveKit. Built with Django and React.
♻️(frontend) refactor background processors to use the new API
lebaudantoine1e5f5c4fe9ce
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 881de225..16120c3e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -19,6 +19,7 @@ and this project adheres to- 🗑️(settings) deprecate SUMMARY_SERVICE_VERSION=1- ⬆️(mail) update mjml to v5 and @html-to/text-cli- 🚸(frontend) initialize the join input name with the persisted full name+- ♻️(frontend) refactor background processors to use the new API### Fixeddiff --git a/src/frontend/src/features/rooms/livekit/components/blur/UnifiedBackgroundTrackProcessor.ts b/src/frontend/src/features/rooms/livekit/components/blur/UnifiedBackgroundTrackProcessor.tsindex 1db7bed8..0bf9c4bb 100644--- a/src/frontend/src/features/rooms/livekit/components/blur/UnifiedBackgroundTrackProcessor.ts+++ b/src/frontend/src/features/rooms/livekit/components/blur/UnifiedBackgroundTrackProcessor.ts@@ -1,8 +1,7 @@import type { ProcessorOptions, Track } from 'livekit-client'import {- BackgroundBlur,ProcessorWrapper,- VirtualBackground,+ BackgroundProcessor,} from '@livekit/track-processors'import {type ProcessorConfig,@@ -20,10 +19,16 @@ export class UnifiedBackgroundTrackProcessor implements BackgroundProcessorInterif (opts.type === 'virtual') {this.processorType = ProcessorType.VIRTUAL- this.processor = VirtualBackground(opts.imagePath)+ this.processor = BackgroundProcessor({+ mode: 'virtual-background',+ imagePath: opts.imagePath,+ })} else if (opts.type === 'blur') {this.processorType = ProcessorType.BLUR- this.processor = BackgroundBlur(opts.blurRadius)+ this.processor = BackgroundProcessor({+ mode: 'background-blur',+ blurRadius: opts.blurRadius,+ })} else {throw new Error('Must provide either imagePath for virtual background or blurRadius for blur'