Keep window crops aligned as windows change

This commit is contained in:
young
2026-09-04 20:06:05 +10:00
parent ed32f05f52
commit a5bbfa8e43
10 changed files with 150 additions and 42 deletions
@@ -75,4 +75,12 @@ describe("ScreenCaptureKitRecorder window capture", () => {
);
expect(recorderSource).toContain("appendCroppedVideoFrame(sampleBuffer");
});
it("refreshes the crop and capture display while the window moves or resizes", () => {
expect(recorderSource).toContain(
"guard let display = Self.captureDisplay(for: window.frame",
);
expect(recorderSource).toContain("try await activeStream.updateContentFilter(filter)");
expect(recorderSource).toContain("self.windowCropRect = cropRect");
});
});