Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🐛(frontend) gate blur on WebGL2 transformer support

lebaudantoine134d9a188ffa
diff --git a/src/frontend/src/features/rooms/livekit/components/blur/index.ts b/src/frontend/src/features/rooms/livekit/components/blur/index.ts
index 6d025915..385b1a5c 100644
--- a/src/frontend/src/features/rooms/livekit/components/blur/index.ts
+++ b/src/frontend/src/features/rooms/livekit/components/blur/index.ts
@@ -1,4 +1,7 @@
-import { ProcessorWrapper } from '@livekit/track-processors'
+import {
+ ProcessorWrapper,
+ supportsBackgroundProcessors,
+} from '@livekit/track-processors'
import type { Track, TrackProcessor } from 'livekit-client'
import { BackgroundCustomProcessor } from './BackgroundCustomProcessor'
import { UnifiedBackgroundTrackProcessor } from './UnifiedBackgroundTrackProcessor'
@@ -34,7 +37,9 @@ export class BackgroundProcessorFactory {
}
static isSupported() {
- return ProcessorWrapper.isSupported || BackgroundCustomProcessor.isSupported
+ return (
+ supportsBackgroundProcessors() || BackgroundCustomProcessor.isSupported
+ )
}
static getProcessor(
@@ -45,7 +50,7 @@ export class BackgroundProcessorFactory {
if (!isBlur && !isVirtual) return undefined
- if (ProcessorWrapper.isSupported) {
+ if (supportsBackgroundProcessors()) {
return new UnifiedBackgroundTrackProcessor(config)
}