From e1ece8b5afb81482838e44558e6988b50fe27ec4 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Tue, 14 Jan 2025 10:54:03 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(front)=20add=20posthog=20log=20for=20?= =?UTF-8?q?Firefox=20blurring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to be able to track device settings and versions when a user enables this feature. --- .../livekit/components/blur/BackgroundBlurCustomProcessor.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/src/features/rooms/livekit/components/blur/BackgroundBlurCustomProcessor.ts b/src/frontend/src/features/rooms/livekit/components/blur/BackgroundBlurCustomProcessor.ts index 768ccee0..eba10993 100644 --- a/src/frontend/src/features/rooms/livekit/components/blur/BackgroundBlurCustomProcessor.ts +++ b/src/frontend/src/features/rooms/livekit/components/blur/BackgroundBlurCustomProcessor.ts @@ -1,4 +1,5 @@ import { ProcessorOptions, Track } from 'livekit-client' +import posthog from 'posthog-js' import { FilesetResolver, ImageSegmenter, @@ -89,6 +90,8 @@ export class BackgroundBlurCustomProcessor this.segmentationMask = new ImageData(PROCESSING_WIDTH, PROCESSING_HEIGHT) await this.initSegmenter() this._initWorker() + + posthog.capture('firefox-blurring-init') } update(opts: BackgroundOptions): void {