Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
feat(rec): let auto-zoom after recording be turned off again
Dmitry-Loburets2b177288e7bf
diff --git a/electron/app-settings.test.ts b/electron/app-settings.test.tsindex 090e66e7c..c6c9e74f3 100644--- a/electron/app-settings.test.ts+++ b/electron/app-settings.test.ts@@ -40,6 +40,28 @@ describe("app settings store", () => {}});+ // getopenscreen/openscreen#723 — the auto-zoom choice has to survive a restart, and a+ // file written before the preference existed must read as on rather than as off.+ it("persists the auto-zoom choice and reads a missing key as on", () => {+ const dir = temp();+ const file = path.join(dir, "recording-settings.json");+ const store = new AppSettingsStore(dir);+ expect(store.getSnapshot().recording.autoZoomEnabled).toBe(true);+ expect(+ store.setRecordingPreferences({ autoZoomEnabled: false }).recording.autoZoomEnabled,+ ).toBe(false);+ expect(JSON.parse(readFileSync(file, "utf8"))).toMatchObject({ autoZoomEnabled: false });+ expect(new AppSettingsStore(dir).getSnapshot().recording.autoZoomEnabled).toBe(false);++ writeFileSync(file, JSON.stringify({ micEnabled: true }), "utf8");+ expect(store.getSnapshot().recording.autoZoomEnabled).toBe(true);+ writeFileSync(file, JSON.stringify({ autoZoomEnabled: "false" }), "utf8");+ expect(store.getSnapshot().recording.autoZoomEnabled).toBe(true);+ expect(() => store.setRecordingPreferences({ autoZoomEnabled: "no" as never })).toThrow(+ TypeError,+ );+ });+it("stores the last source beside the recording preferences", () => {const dir = temp();const store = new AppSettingsStore(dir);diff --git a/electron/app-settings.ts b/electron/app-settings.tsindex 51ac26b2b..510943ea4 100644--- a/electron/app-settings.ts+++ b/electron/app-settings.ts@@ -13,6 +13,14 @@ export interface RecordingPreferences {cursorCaptureMode: CursorCaptureMode;/** Display captures on macOS and Windows. Opt-in: on Windows the icons also leave the real desktop while recording. */hideDesktopIcons: boolean;+ /**+ * Whether the editor decorates a fresh take with cursor-dwell zooms when it imports it.+ *+ * Absent from a settings file written before this preference existed, which is why+ * `parseRecording` reads a missing key as the default rather than as "off": the+ * behaviour it gates has been on for every such installation.+ */+ autoZoomEnabled: boolean;}export const DEFAULT_RECORDING_PREFERENCES: RecordingPreferences = {@@ -25,6 +33,7 @@ export const DEFAULT_RECORDING_PREFERENCES: RecordingPreferences = {systemAudioEnabled: false,cursorCaptureMode: "editable-overlay",hideDesktopIcons: false,+ autoZoomEnabled: true,};export interface RecordingSourceDescriptor {@@ -100,6 +109,7 @@ function parseRecording(raw: RawSettings): RecordingPreferences {? raw.cursorCaptureMode: DEFAULT_RECORDING_PREFERENCES.cursorCaptureMode,hideDesktopIcons: bool(raw.hideDesktopIcons, DEFAULT_RECORDING_PREFERENCES.hideDesktopIcons),+ autoZoomEnabled: bool(raw.autoZoomEnabled, DEFAULT_RECORDING_PREFERENCES.autoZoomEnabled),};}diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.tsindex 42c44823f..e4154703c 100644--- a/electron/ipc/handlers.ts+++ b/electron/ipc/handlers.ts@@ -651,6 +651,8 @@ export interface RecordingPrefs {systemAudioEnabled: boolean;cursorCaptureMode: CursorCaptureMode;hideDesktopIcons: boolean;+ /** Whether a fresh take gets cursor-dwell zooms on import. Persisted; defaults on. */+ autoZoomEnabled: boolean;}const defaultRecordingPrefs: RecordingPrefs = {micEnabled: false,@@ -662,6 +664,7 @@ const defaultRecordingPrefs: RecordingPrefs = {systemAudioEnabled: false,cursorCaptureMode: "editable-overlay",hideDesktopIcons: false,+ autoZoomEnabled: true,};// Cached source from the user's pick. Used by setDisplayMediaRequestHandler in main.ts for cursor-free capture.diff --git a/electron/ipc/recordingPrefs.test.ts b/electron/ipc/recordingPrefs.test.tsindex a04d4e041..fe8cdce9d 100644--- a/electron/ipc/recordingPrefs.test.ts+++ b/electron/ipc/recordingPrefs.test.ts@@ -22,6 +22,7 @@ const defaults: RecordingPrefs = {systemAudioEnabled: false,cursorCaptureMode: "editable-overlay",hideDesktopIcons: false,+ autoZoomEnabled: true,};let dir: string;beforeEach(() => {diff --git a/src/components/ai-edition/recordingImport.test.ts b/src/components/ai-edition/recordingImport.test.tsindex 22ef90a7f..487ed62b9 100644--- a/src/components/ai-edition/recordingImport.test.ts+++ b/src/components/ai-edition/recordingImport.test.ts@@ -76,6 +76,19 @@ function stubElectronApi(return api;}+type PrefsBridge = { getRecordingPrefs?: () => Promise<unknown> };++/** Points the prefs bridge at one getter, leaving the rest of the stub alone.+ * `undefined` stands for a surface that does not expose the method at all. */+function stubRecordingPrefsBridge(getRecordingPrefs: PrefsBridge["getRecordingPrefs"]) {+ const host = window as unknown as { electronAPI?: PrefsBridge };+ host.electronAPI = { ...(host.electronAPI ?? {}), getRecordingPrefs };+}++function stubRecordingPrefs(prefs: Record<string, unknown>) {+ stubRecordingPrefsBridge(vi.fn(async () => prefs));+}+describe("importPendingRecording", () => {beforeEach(() => {vi.clearAllMocks();@@ -300,6 +313,9 @@ describe("fresh-recording auto-zoom", () => {beforeEach(() => {vi.clearAllMocks();consumeFreshRecordingAutoZoomPending();+ // Each test starts from the default answer; the ones about the preference set+ // their own. Without this a stubbed "off" leaks into whatever runs next.+ stubRecordingPrefs({ autoZoomEnabled: true });useProjectStore.setState({document: null,createProject,@@ -360,6 +376,39 @@ describe("fresh-recording auto-zoom", () => {expect(next.zoomRanges).toHaveLength(1);});+ // getopenscreen/openscreen#723 — the recording preference is the whole point of the+ // toggle: a take imported with it off must arrive undecorated, and the hand-off must+ // be spent rather than left armed for the next document loaded in this window.+ it("skips the take when the recording preference is off", async () => {+ markFreshRecordingAutoZoomPending(RECORDING_PATH);+ stubRecordingPrefs({ autoZoomEnabled: false });+ const document = documentWithClip();+ const next = await applyPendingFreshRecordingAutoZooms(document, {+ getTelemetry: async () => dwell(4000, 0.5, 0.5),+ });+ expect(next.zoomRanges).toEqual([]);+ expect(consumeFreshRecordingAutoZoomPending()).toBe(false);+ });++ // A bridge that is missing or throwing says nothing about what the user chose, and+ // the answer every installation had before the preference existed is "on".+ it("treats an unreadable prefs bridge as on", async () => {+ const broken: Array<PrefsBridge["getRecordingPrefs"]> = [+ undefined,+ () => Promise.reject(new Error("no bridge")),+ ];+ for (const getRecordingPrefs of broken) {+ consumeFreshRecordingAutoZoomPending();+ markFreshRecordingAutoZoomPending(RECORDING_PATH);+ stubRecordingPrefsBridge(getRecordingPrefs);+ const next = await applyPendingFreshRecordingAutoZooms(documentWithClip(), {+ getTelemetry: async () => dwell(4000, 0.5, 0.5),+ createId: (prefix) => `${prefix}_test`,+ });+ expect(next.zoomRanges).toHaveLength(1);+ }+ });+// The stop handler awaits `writePendingCursorTelemetry` before it publishes the// session, so the sidecar is on disk by the time a take can be imported. An empty// read is therefore the take's real answer, not a mid-flush one, and leaving thediff --git a/src/components/ai-edition/recordingImport.ts b/src/components/ai-edition/recordingImport.tsindex 5200e560e..2d47d7307 100644--- a/src/components/ai-edition/recordingImport.ts+++ b/src/components/ai-edition/recordingImport.ts@@ -77,6 +77,23 @@ export type ApplyFreshRecordingAutoZoomsDeps = {waitTimeoutMs?: number;};+/**+ * The user's standing answer, read fresh rather than cached: the toggle lives in the+ * editor's rec panel and the HUD publishes prefs changes across windows, so the value+ * can change between one take and the next within a single renderer.+ *+ * An unreachable or throwing bridge reads as ON, which is what every installation did+ * before the preference existed — a failed IPC call must not silently turn a feature off.+ */+async function readAutoZoomPref(): Promise<boolean> {+ try {+ const prefs = await window.electronAPI?.getRecordingPrefs?.();+ return prefs?.autoZoomEnabled !== false;+ } catch {+ return true;+ }+}+function isPendingFreshRecordingAsset(asset: { originalPath?: string | null }): boolean {return asset.originalPath === pendingFreshRecordingAutoZoomPath;}@@ -143,7 +160,7 @@ export async function applyPendingFreshRecordingAutoZooms(clearFreshRecordingAutoZoomPending();return document;}- const enabled = deps.enabled ?? true;+ const enabled = deps.enabled ?? (await readAutoZoomPref());if (!enabled) {clearFreshRecordingAutoZoomPending();return liveDocument(document);diff --git a/src/components/ai-edition/v4/RecStage.test.tsx b/src/components/ai-edition/v4/RecStage.test.tsxindex fd17ff4f6..627f5c228 100644--- a/src/components/ai-edition/v4/RecStage.test.tsx+++ b/src/components/ai-edition/v4/RecStage.test.tsx@@ -136,17 +136,57 @@ describe("RecStage controls", () => {expect(getSources).not.toHaveBeenCalled();});- it("does not render an auto-zoom toggle button (auto-zoom is systematic)", async () => {+ it("writes autoZoomEnabled through setRecordingPrefs on click", async () => {+ const { getRecordingPrefs, setRecordingPrefs } = stubRecordingPrefs({+ micEnabled: false,+ cursorCaptureMode: "editable-overlay",+ autoZoomEnabled: true,+ });+ renderRecStage();+ await waitFor(() => expect(getRecordingPrefs).toHaveBeenCalled());++ const button = screen.getByTestId("rec-auto-zoom-button");+ await waitFor(() => expect(button).toHaveAttribute("aria-pressed", "true"));+ await act(async () => {+ button.click();+ });+ expect(setRecordingPrefs).toHaveBeenCalledWith({ autoZoomEnabled: false });+ expect(button).toHaveAttribute("aria-pressed", "false");+ });++ // A settings file written before the preference existed has no key, and every such+ // installation has been getting auto-zoom — so absent must read as on, not off.+ it("defaults on when a stored prefs blob has no autoZoomEnabled key", async () => {const { getRecordingPrefs } = stubRecordingPrefs({micEnabled: false,cursorCaptureMode: "editable-overlay",hideDesktopIcons: false,});renderRecStage();- await waitFor(() => {- expect(getRecordingPrefs).toHaveBeenCalled();+ await waitFor(() => expect(getRecordingPrefs).toHaveBeenCalled());+ expect(screen.getByTestId("rec-auto-zoom-button")).toHaveAttribute("aria-pressed", "true");+ });++ // The system cursor writes no telemetry sidecar, so there is no dwell to place a+ // zoom from. The row says Off and cannot be clicked rather than offering a choice+ // that would silently do nothing.+ it("reads off and stays inert while the system cursor is capturing", async () => {+ const { getRecordingPrefs, setRecordingPrefs } = stubRecordingPrefs({+ micEnabled: false,+ cursorCaptureMode: "system",+ autoZoomEnabled: true,+ });+ renderRecStage();+ await waitFor(() => expect(getRecordingPrefs).toHaveBeenCalled());++ const button = screen.getByTestId("rec-auto-zoom-button");+ await waitFor(() => expect(button).toBeDisabled());+ expect(button).toHaveAttribute("aria-pressed", "false");+ expect(button).toHaveAttribute("title", "rec.autoZoomNeedsEditableCursor");+ await act(async () => {+ button.click();});- expect(screen.queryByTestId("rec-auto-zoom-button")).toBeNull();+ expect(setRecordingPrefs).not.toHaveBeenCalled();});it("waits for microphone discovery before starting the meter and normalizes default", async () => {@@ -279,6 +319,7 @@ describe("RecStage controls", () => {systemAudioEnabled: false,cursorCaptureMode: "editable-overlay",hideDesktopIcons: false,+ autoZoomEnabled: true,};act(() => {recordingPrefsListeners.forEach((listener) => listener(resetPrefs));diff --git a/src/components/ai-edition/v4/RecStage.tsx b/src/components/ai-edition/v4/RecStage.tsxindex feeddae39..7d012f2ad 100644--- a/src/components/ai-edition/v4/RecStage.tsx+++ b/src/components/ai-edition/v4/RecStage.tsx@@ -10,6 +10,7 @@ import {MousePointer2,Volume2,VolumeX,+ ZoomIn,} from "lucide-react";import { useEffect, useRef, useState } from "react";import { AudioLevelMeter } from "@/components/ui/audio-level-meter";@@ -32,6 +33,7 @@ interface RecordingPrefsState {systemAudioEnabled: boolean;cursorCaptureMode: "editable-overlay" | "system";hideDesktopIcons: boolean;+ autoZoomEnabled: boolean;}const DEFAULT_PREFS: RecordingPrefsState = {@@ -44,6 +46,7 @@ const DEFAULT_PREFS: RecordingPrefsState = {systemAudioEnabled: false,cursorCaptureMode: "editable-overlay",hideDesktopIcons: false,+ autoZoomEnabled: true,};function normalizedRecordingPrefs(prefs: Partial<RecordingPrefsState>): RecordingPrefsState {@@ -224,6 +227,7 @@ export function RecStage({const visibleSources = sourceTab === "screen" ? screenSources : windowSources;const cursorHighlight = prefs.cursorCaptureMode === "editable-overlay";+ const autoZoom = prefs.autoZoomEnabled && cursorHighlight;// macOS leaves the icons out of the capture; Windows covers them for the take. Linux// records through the portal, which offers neither, so the row would do nothing there.const platform = getPlatform();@@ -457,6 +461,27 @@ export function RecStage({</button></div>+ {/* Auto-zoom rides on the cursor telemetry the editable-overlay mode writes,+ so the system cursor leaves nothing to place zooms from — the row reads+ Off and is inert there rather than promising a choice that cannot apply. */}+ <div className={styles.recRow}>+ <div className={styles.recRowLabel}>+ <ZoomIn size={15} />+ {t("rec.autoZoom")}+ </div>+ <button+ type="button"+ data-testid="rec-auto-zoom-button"+ className={`${styles.recToggleBtn}${autoZoom ? ` ${styles.on}` : ""}`}+ aria-pressed={autoZoom}+ disabled={!cursorHighlight}+ title={cursorHighlight ? undefined : t("rec.autoZoomNeedsEditableCursor")}+ onClick={() => updatePrefs({ autoZoomEnabled: !prefs.autoZoomEnabled })}+ >+ {autoZoom ? t("rec.on") : t("rec.off")}+ </button>+ </div>+{desktopIconsHint ? (<div className={styles.recRow}><div className={styles.recRowLabel} title={desktopIconsHint}>diff --git a/src/hooks/useScreenRecorder.prefsRace.test.tsx b/src/hooks/useScreenRecorder.prefsRace.test.tsxindex 0c1d10e8e..8c06cfc79 100644--- a/src/hooks/useScreenRecorder.prefsRace.test.tsx+++ b/src/hooks/useScreenRecorder.prefsRace.test.tsx@@ -28,6 +28,7 @@ function prefs(micEnabled: boolean): RecordingPrefs {systemAudioEnabled: false,cursorCaptureMode: "editable-overlay",hideDesktopIcons: false,+ autoZoomEnabled: true,};}diff --git a/src/i18n/locales/ar/editor.json b/src/i18n/locales/ar/editor.jsonindex b1452a3e6..9070edb26 100644--- a/src/i18n/locales/ar/editor.json+++ b/src/i18n/locales/ar/editor.json@@ -112,6 +112,8 @@"microphone": "الميكروفون","camera": "الكاميرا","cursorHighlight": "إبراز المؤشر",+ "autoZoom": "تكبير تلقائي بعد التسجيل",+ "autoZoomNeedsEditableCursor": "التكبير التلقائي يحتاج إلى المؤشر القابل للتحرير. بدّل وضع المؤشر للتفعيل.","hideDesktopIcons": "إخفاء أيقونات سطح المكتب","hideDesktopIconsHintMac": "يستبعد أيقونات سطح المكتب من تسجيلات الشاشة. تبقى على سطح المكتب لديك.","hideDesktopIconsHintWindows": "يغطي أيقونات سطح المكتب بخلفية الشاشة أثناء تسجيل الشاشة. تعود عند انتهاء التسجيل.",diff --git a/src/i18n/locales/cs/editor.json b/src/i18n/locales/cs/editor.jsonindex 0b96b4024..09042c5ad 100644--- a/src/i18n/locales/cs/editor.json+++ b/src/i18n/locales/cs/editor.json@@ -112,6 +112,8 @@"microphone": "Mikrofon","camera": "Kamera","cursorHighlight": "Zvýraznění kurzoru",+ "autoZoom": "Automatické přiblížení po nahrávání",+ "autoZoomNeedsEditableCursor": "Automatické přiblížení vyžaduje editovatelný kurzor. Přepněte režim kurzoru.","hideDesktopIcons": "Skrýt ikony na ploše","hideDesktopIconsHintMac": "Vynechá ikony na ploše ze záznamů obrazovky. Na ploše vám zůstanou.","hideDesktopIconsHintWindows": "Během nahrávání obrazovky zakryje ikony na ploše tapetou. Po skončení nahrávání se vrátí.",diff --git a/src/i18n/locales/de/editor.json b/src/i18n/locales/de/editor.jsonindex 6ee6b7888..aab7776c8 100644--- a/src/i18n/locales/de/editor.json+++ b/src/i18n/locales/de/editor.json@@ -112,6 +112,8 @@"microphone": "Mikrofon","camera": "Kamera","cursorHighlight": "Cursor hervorheben",+ "autoZoom": "Auto-Zoom nach der Aufnahme",+ "autoZoomNeedsEditableCursor": "Auto-Zoom benötigt den bearbeitbaren Cursor. Wechseln Sie den Cursor-Modus.","hideDesktopIcons": "Schreibtischsymbole ausblenden","hideDesktopIconsHintMac": "Lässt die Schreibtischsymbole in Bildschirmaufnahmen weg. Auf deinem Schreibtisch bleiben sie.","hideDesktopIconsHintWindows": "Deckt die Desktopsymbole während einer Bildschirmaufnahme mit deinem Hintergrundbild ab. Nach der Aufnahme sind sie wieder da.",diff --git a/src/i18n/locales/en/editor.json b/src/i18n/locales/en/editor.jsonindex 7eef3397c..7b4b5975e 100644--- a/src/i18n/locales/en/editor.json+++ b/src/i18n/locales/en/editor.json@@ -112,6 +112,8 @@"microphone": "Microphone","camera": "Camera","cursorHighlight": "Cursor highlight",+ "autoZoom": "Auto-zoom after recording",+ "autoZoomNeedsEditableCursor": "Auto-zoom needs the editable cursor. Switch cursor mode to enable.","hideDesktopIcons": "Hide desktop icons","hideDesktopIconsHintMac": "Leaves the desktop icons out of screen recordings. They stay on your desktop.","hideDesktopIconsHintWindows": "Covers the desktop icons with your wallpaper while a screen is recording. They come back when recording stops.",diff --git a/src/i18n/locales/es/editor.json b/src/i18n/locales/es/editor.jsonindex 3574f2a8b..ed23ee66c 100644--- a/src/i18n/locales/es/editor.json+++ b/src/i18n/locales/es/editor.json@@ -112,6 +112,8 @@"microphone": "Micrófono","camera": "Cámara","cursorHighlight": "Resaltar cursor",+ "autoZoom": "Zoom automático tras grabar",+ "autoZoomNeedsEditableCursor": "El zoom automático necesita el cursor editable. Cambia el modo del cursor para activarlo.","hideDesktopIcons": "Ocultar iconos del escritorio","hideDesktopIconsHintMac": "Deja fuera los iconos del escritorio en las grabaciones de pantalla. Siguen en tu escritorio.","hideDesktopIconsHintWindows": "Cubre los iconos del escritorio con tu fondo de pantalla mientras se graba una pantalla. Vuelven al terminar la grabación.",diff --git a/src/i18n/locales/fr/editor.json b/src/i18n/locales/fr/editor.jsonindex f26c00ab8..d94e40668 100644--- a/src/i18n/locales/fr/editor.json+++ b/src/i18n/locales/fr/editor.json@@ -112,6 +112,8 @@"microphone": "Microphone","camera": "Caméra","cursorHighlight": "Curseur en surbrillance",+ "autoZoom": "Zoom automatique après l'enregistrement",+ "autoZoomNeedsEditableCursor": "Le zoom automatique nécessite le curseur modifiable. Changez le mode du curseur pour l'activer.","hideDesktopIcons": "Masquer les icônes du bureau","hideDesktopIconsHintMac": "Retire les icônes du bureau des enregistrements d'écran. Elles restent sur votre bureau.","hideDesktopIconsHintWindows": "Recouvre les icônes du bureau avec votre fond d'écran pendant l'enregistrement d'un écran. Elles reviennent à la fin de l'enregistrement.",diff --git a/src/i18n/locales/it/editor.json b/src/i18n/locales/it/editor.jsonindex 6275c9549..5522af666 100644--- a/src/i18n/locales/it/editor.json+++ b/src/i18n/locales/it/editor.json@@ -112,6 +112,8 @@"microphone": "Microfono","camera": "Fotocamera","cursorHighlight": "Evidenzia cursore",+ "autoZoom": "Zoom automatico dopo la registrazione",+ "autoZoomNeedsEditableCursor": "Lo zoom automatico richiede il cursore modificabile. Cambia la modalità del cursore per attivarlo.","hideDesktopIcons": "Nascondi icone della scrivania","hideDesktopIconsHintMac": "Esclude le icone della scrivania dalle registrazioni dello schermo. Restano sulla tua scrivania.","hideDesktopIconsHintWindows": "Copre le icone del desktop con lo sfondo durante la registrazione di uno schermo. Tornano al termine della registrazione.",diff --git a/src/i18n/locales/ja-JP/editor.json b/src/i18n/locales/ja-JP/editor.jsonindex 0958f7fb6..a12ffb118 100644--- a/src/i18n/locales/ja-JP/editor.json+++ b/src/i18n/locales/ja-JP/editor.json@@ -112,6 +112,8 @@"microphone": "マイク","camera": "カメラ","cursorHighlight": "カーソルの強調表示",+ "autoZoom": "録画後に自動ズーム",+ "autoZoomNeedsEditableCursor": "自動ズームには編集可能なカーソルが必要です。カーソルモードを切り替えてください。","hideDesktopIcons": "デスクトップアイコンを隠す","hideDesktopIconsHintMac": "画面収録からデスクトップアイコンを除外します。デスクトップ上には残ります。","hideDesktopIconsHintWindows": "画面の収録中、デスクトップアイコンを壁紙で覆います。収録を止めると元に戻ります。",diff --git a/src/i18n/locales/ko-KR/editor.json b/src/i18n/locales/ko-KR/editor.jsonindex 5f147f9dc..1e3fcd563 100644--- a/src/i18n/locales/ko-KR/editor.json+++ b/src/i18n/locales/ko-KR/editor.json@@ -112,6 +112,8 @@"microphone": "마이크","camera": "카메라","cursorHighlight": "커서 강조",+ "autoZoom": "녹화 후 자동 확대",+ "autoZoomNeedsEditableCursor": "자동 확대는 편집 가능한 커서가 필요합니다. 커서 모드를 전환하세요.","hideDesktopIcons": "바탕화면 아이콘 숨기기","hideDesktopIconsHintMac": "화면 녹화에서 바탕화면 아이콘을 제외합니다. 바탕화면에는 그대로 남아 있습니다.","hideDesktopIconsHintWindows": "화면을 녹화하는 동안 바탕화면 아이콘을 배경 화면으로 가립니다. 녹화를 멈추면 다시 나타납니다.",diff --git a/src/i18n/locales/pt-BR/editor.json b/src/i18n/locales/pt-BR/editor.jsonindex b2f2ebce4..c9af942d2 100644--- a/src/i18n/locales/pt-BR/editor.json+++ b/src/i18n/locales/pt-BR/editor.json@@ -112,6 +112,8 @@"microphone": "Microfone","camera": "Câmera","cursorHighlight": "Destaque do cursor",+ "autoZoom": "Zoom automático após a gravação",+ "autoZoomNeedsEditableCursor": "O zoom automático precisa do cursor editável. Alterne o modo do cursor para ativar.","hideDesktopIcons": "Ocultar ícones da área de trabalho","hideDesktopIconsHintMac": "Deixa os ícones da área de trabalho fora das gravações de tela. Eles continuam na sua área de trabalho.","hideDesktopIconsHintWindows": "Cobre os ícones da área de trabalho com o seu papel de parede enquanto uma tela é gravada. Eles voltam quando a gravação termina.",diff --git a/src/i18n/locales/ru/editor.json b/src/i18n/locales/ru/editor.jsonindex cc6f324be..7766804df 100644--- a/src/i18n/locales/ru/editor.json+++ b/src/i18n/locales/ru/editor.json@@ -112,6 +112,8 @@"microphone": "Микрофон","camera": "Камера","cursorHighlight": "Подсветка курсора",+ "autoZoom": "Автомасштабирование после записи",+ "autoZoomNeedsEditableCursor": "Автомасштабирование требует редактируемый курсор. Переключите режим курсора.","hideDesktopIcons": "Скрыть значки рабочего стола","hideDesktopIconsHintMac": "Убирает значки рабочего стола из записи экрана. На рабочем столе они остаются.","hideDesktopIconsHintWindows": "Закрывает значки рабочего стола обоями, пока идёт запись экрана. После записи они вернутся.",diff --git a/src/i18n/locales/tr/editor.json b/src/i18n/locales/tr/editor.jsonindex 2f3c01abf..7814d8b29 100644--- a/src/i18n/locales/tr/editor.json+++ b/src/i18n/locales/tr/editor.json@@ -112,6 +112,8 @@"microphone": "Mikrofon","camera": "Kamera","cursorHighlight": "İmleç vurgusu",+ "autoZoom": "Kayıttan sonra otomatik yakınlaştırma",+ "autoZoomNeedsEditableCursor": "Otomatik yakınlaştırma düzenlenebilir imleç ister. Etkinleştirmek için imleç modunu değiştirin.","hideDesktopIcons": "Masaüstü simgelerini gizle","hideDesktopIconsHintMac": "Masaüstü simgelerini ekran kayıtlarının dışında bırakır. Masaüstünüzde kalırlar.","hideDesktopIconsHintWindows": "Bir ekran kaydedilirken masaüstü simgelerini duvar kağıdınızla örter. Kayıt bitince geri gelirler.",diff --git a/src/i18n/locales/vi/editor.json b/src/i18n/locales/vi/editor.jsonindex b1836927d..2c009f6fe 100644--- a/src/i18n/locales/vi/editor.json+++ b/src/i18n/locales/vi/editor.json@@ -112,6 +112,8 @@"microphone": "Micro","camera": "Máy ảnh","cursorHighlight": "Làm nổi bật con trỏ",+ "autoZoom": "Tự động phóng to sau khi ghi",+ "autoZoomNeedsEditableCursor": "Tự động phóng to cần con trỏ chỉnh sửa được. Hãy đổi chế độ con trỏ.","hideDesktopIcons": "Ẩn biểu tượng màn hình nền","hideDesktopIconsHintMac": "Loại các biểu tượng màn hình nền khỏi bản ghi màn hình. Chúng vẫn ở trên màn hình nền của bạn.","hideDesktopIconsHintWindows": "Che các biểu tượng màn hình nền bằng hình nền trong khi ghi màn hình. Chúng sẽ trở lại khi dừng ghi.",diff --git a/src/i18n/locales/zh-CN/editor.json b/src/i18n/locales/zh-CN/editor.jsonindex a81e03a50..50fd04222 100644--- a/src/i18n/locales/zh-CN/editor.json+++ b/src/i18n/locales/zh-CN/editor.json@@ -112,6 +112,8 @@"microphone": "麦克风","camera": "摄像头","cursorHighlight": "光标高亮",+ "autoZoom": "录制后自动缩放",+ "autoZoomNeedsEditableCursor": "自动缩放需要可编辑光标。请先切换光标模式。","hideDesktopIcons": "隐藏桌面图标","hideDesktopIconsHintMac": "在屏幕录制中去掉桌面图标。它们仍保留在你的桌面上。","hideDesktopIconsHintWindows": "录制屏幕时用壁纸遮住桌面图标。停止录制后会恢复。",diff --git a/src/i18n/locales/zh-TW/editor.json b/src/i18n/locales/zh-TW/editor.jsonindex a58c17635..fd66cb4fb 100644--- a/src/i18n/locales/zh-TW/editor.json+++ b/src/i18n/locales/zh-TW/editor.json@@ -112,6 +112,8 @@"microphone": "麥克風","camera": "攝影機","cursorHighlight": "游標醒目提示",+ "autoZoom": "錄製後自動縮放",+ "autoZoomNeedsEditableCursor": "自動縮放需要可編輯游標。請先切換游標模式。","hideDesktopIcons": "隱藏桌面圖示","hideDesktopIconsHintMac": "在螢幕錄製中略去桌面圖示。它們仍會留在你的桌面上。","hideDesktopIconsHintWindows": "錄製螢幕時以桌布遮住桌面圖示。停止錄製後就會恢復。",diff --git a/src/native/browserShim.ts b/src/native/browserShim.tsindex 0328f0d95..f8029d5e8 100644--- a/src/native/browserShim.ts+++ b/src/native/browserShim.ts@@ -58,6 +58,7 @@ type ShimRecordingPrefs = {camDeviceName: string | null;systemAudioEnabled: boolean;cursorCaptureMode: "editable-overlay" | "system";+ autoZoomEnabled: boolean;};const recordingPrefsStorageKey = "browser-shim-recording-prefs";let shimRecordingPrefs: ShimRecordingPrefs = {@@ -69,6 +70,7 @@ let shimRecordingPrefs: ShimRecordingPrefs = {camDeviceName: null,systemAudioEnabled: false,cursorCaptureMode: "editable-overlay",+ autoZoomEnabled: true,};const shimRecordingPrefsListeners = new Set<(prefs: ShimRecordingPrefs) => void>();const shimSelectedSourceListeners = new Set<(source: ShimDesktopSource | null) => void>();