From dabb71a5cd849ed0056c2d7b9b0cb5c9dba45894 Mon Sep 17 00:00:00 2001 From: TheCryptoDonkey Date: Sun, 27 Sep 2026 21:29:00 +0100 Subject: [PATCH] feat(call): keep you in the middle of your own picture With a background effect on, the pipeline now crops the finished frame around the person the effect's mask finds, eased so it drifts rather than twitches and zoomed no more than 1.6x. It crops pixels the effect has already painted, so it can only send less of the room. With no mask to go on it eases back to the whole frame. "Keep me in the middle of the picture" in the effects panel turns it off; it is on by default and remembered per device. Claude-Session: https://claude.ai/code/session_01CG4pPCsd8pdySNvBpt8fTk --- app/index.html | 6 ++ app/src/auto-frame.test.ts | 83 +++++++++++++++++++++++ app/src/auto-frame.ts | 132 +++++++++++++++++++++++++++++++++++++ app/src/main.ts | 17 +++++ app/src/video-pipeline.ts | 36 +++++++++- src/video-effects.ts | 10 +++ 6 files changed, 283 insertions(+), 1 deletion(-) create mode 100644 app/src/auto-frame.test.ts create mode 100644 app/src/auto-frame.ts diff --git a/app/index.html b/app/index.html index 7576eeeb..64c128b5 100644 --- a/app/index.html +++ b/app/index.html @@ -227,6 +227,12 @@

+
+ +