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 385b1a5c..7405968f 100644 --- a/src/frontend/src/features/rooms/livekit/components/blur/index.ts +++ b/src/frontend/src/features/rooms/livekit/components/blur/index.ts @@ -32,14 +32,18 @@ export interface BackgroundProcessorInterface extends TrackProcessor } export class BackgroundProcessorFactory { + private static _isSupported?: boolean + static hasModernApiSupport() { return ProcessorWrapper.hasModernApiSupport } static isSupported() { - return ( - supportsBackgroundProcessors() || BackgroundCustomProcessor.isSupported - ) + if (this._isSupported === undefined) { + this._isSupported = + supportsBackgroundProcessors() || BackgroundCustomProcessor.isSupported + } + return this._isSupported } static getProcessor(