Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(camera): frame the webcam by dragging, not with two pan sliders

EtienneLescot5c8f9035743d
diff --git a/src/components/ai-edition/NewEditorShell.module.css b/src/components/ai-edition/NewEditorShell.module.css
index 5a074d05b..85561b7b6 100644
--- a/src/components/ai-edition/NewEditorShell.module.css
+++ b/src/components/ai-edition/NewEditorShell.module.css
@@ -1144,6 +1144,49 @@ textarea.control {
}
.choiceBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.choiceRowTiles .choiceBtn { min-height: 44px; }
+
+/* ─── webcam framing (LayoutPane) ─────────────────────────────── */
+/* A picture of the camera with the kept frame on it: outside the frame is dimmed, the frame is
+ what the webcam will show, and it is dragged to choose that. */
+.framing {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ margin: 0 var(--sp-4) 4px;
+}
+.framingBox {
+ position: relative;
+ width: 100%;
+ max-width: 100%;
+ overflow: hidden;
+ border-radius: var(--r-md);
+ background: linear-gradient(135deg, color-mix(in oklab, var(--fg) 10%, transparent), color-mix(in oklab, var(--fg) 4%, transparent));
+}
+.framingVideo {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ pointer-events: none;
+}
+.framingCrop {
+ position: absolute;
+ box-sizing: border-box;
+ border: 2px solid #fff;
+ border-radius: 6px;
+ /* Dims everything outside the frame without a second element. */
+ box-shadow: 0 0 0 999px rgb(0 0 0 / 0.45);
+ touch-action: none;
+}
+.framingCrop[data-movable="true"] { cursor: grab; }
+.framingCrop[data-movable="true"]:active { cursor: grabbing; }
+.framingCrop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+.framingHint {
+ margin: 0;
+ font: 400 12px/1.5 var(--font-body);
+ color: var(--muted);
+}
/* Under an icon, the name shrinks to one line and ellipsises rather than widening the column. */
.choiceBtnLabel {
max-width: 100%;
diff --git a/src/components/ai-edition/RightPanes.layout.test.tsx b/src/components/ai-edition/RightPanes.layout.test.tsx
index 48b981d31..68bc6c37a 100644
--- a/src/components/ai-edition/RightPanes.layout.test.tsx
+++ b/src/components/ai-edition/RightPanes.layout.test.tsx
@@ -143,10 +143,13 @@ describe("LayoutPane camera availability", () => {
// A trip down to 100% therefore erased the framing rather than suspending it.
describe("LayoutPane webcam crop pan", () => {
const zoom = () => screen.getByRole("slider", { name: "Zoom" });
- const panX = () => screen.getByRole("slider", { name: "Pan horizontally" });
- const panY = () => screen.getByRole("slider", { name: "Pan vertically" });
+ // The frame on the camera picture: dragged by pointer, moved 5% a step by the arrows.
+ const frame = () => screen.getByRole("slider", { name: "Webcam crop" });
const set = (slider: HTMLElement, value: number) =>
fireEvent.change(slider, { target: { value: String(value) } });
+ const press = (key: string, times: number) => {
+ for (let i = 0; i < times; i++) fireEvent.keyDown(frame(), { key });
+ };
const storedCrop = () =>
useProjectStore.getState().document?.legacyEditor as unknown as {
webcamCropRegion: { x: number; y: number; width: number; height: number };
@@ -157,45 +160,47 @@ describe("LayoutPane webcam crop pan", () => {
renderLayout(seedProject(true));
set(zoom(), 200);
- set(panX(), 75);
- expect(panX()).toHaveValue("75");
+ press("ArrowRight", 5);
+ expect(frame()).toHaveAttribute("aria-valuetext", "75%, 50%");
set(zoom(), 100);
- // Nowhere to pan at full frame, so the control is correctly out of reach...
- expect(panX()).toBeDisabled();
+ // Nowhere to pan at full frame, so the frame is correctly out of reach, and says why...
+ expect(frame()).toHaveAttribute("aria-disabled", "true");
+ expect(screen.getByText(/zoom in, then drag the frame/i)).toBeInTheDocument();
+ press("ArrowLeft", 3);
+ expect(storedCrop().webcamCropPan.x).toBeCloseTo(0.75);
set(zoom(), 200);
// ...but the intent survived the trip.
- expect(panX()).toHaveValue("75");
+ expect(frame()).toHaveAttribute("aria-valuetext", "75%, 50%");
});
it("does not move the pan while the zoom slider is dragged", () => {
// The old clamp squeezed the rect's offset toward the near edge as the window grew,
- // so the pan slider crept upward on its own while the picture stayed put.
+ // so the pan crept on its own while the picture stayed put.
renderLayout(seedProject(true));
set(zoom(), 200);
- set(panX(), 75);
+ press("ArrowRight", 5);
for (const pct of [180, 150, 120, 110, 101]) {
set(zoom(), pct);
- expect(panX()).toHaveValue("75");
+ expect(frame()).toHaveAttribute("aria-valuetext", "75%, 50%");
}
});
- it("wires the vertical slider to the vertical axis", () => {
- // The two sliders differ by one character in the handler they call. Without this,
- // a Y slider wired to "x" would pass every other test in this block.
+ it("moves the frame on the axis each arrow names", () => {
+ // Up/down and left/right differ by one character in the handler. Without this, a
+ // vertical arrow wired to x would pass every other test in this block.
renderLayout(seedProject(true));
set(zoom(), 200);
- set(panY(), 80);
+ press("ArrowDown", 6);
- expect(panY()).toHaveValue("80");
expect(storedCrop().webcamCropPan.y).toBeCloseTo(0.8);
expect(storedCrop().webcamCropRegion.y).toBeCloseTo(0.4);
// ...and it left the horizontal axis alone.
- expect(panX()).toHaveValue("50");
+ expect(storedCrop().webcamCropPan.x).toBeCloseTo(0.5);
expect(storedCrop().webcamCropRegion.x).toBeCloseTo(0.25);
});
@@ -203,21 +208,15 @@ describe("LayoutPane webcam crop pan", () => {
renderLayout(seedProject(true));
set(zoom(), 200);
- set(panX(), 100);
+ press("ArrowRight", 20);
// Hard against the right edge: a half-width window starts halfway across.
- let crop = useProjectStore.getState().document?.legacyEditor?.webcamCropRegion as unknown as {
- x: number;
- width: number;
- };
+ let crop = storedCrop().webcamCropRegion;
expect(crop.width).toBeCloseTo(0.5);
expect(crop.x).toBeCloseTo(0.5);
set(zoom(), 400);
// Clamped to the slider's 300% ceiling, so a third of the frame, still hard right.
- crop = useProjectStore.getState().document?.legacyEditor?.webcamCropRegion as unknown as {
- x: number;
- width: number;
- };
+ crop = storedCrop().webcamCropRegion;
expect(crop.x).toBeCloseTo(1 - crop.width);
});
});
diff --git a/src/components/ai-edition/RightPanes.tsx b/src/components/ai-edition/RightPanes.tsx
index 86fec784e..798327825 100644
--- a/src/components/ai-edition/RightPanes.tsx
+++ b/src/components/ai-edition/RightPanes.tsx
@@ -43,6 +43,7 @@ import { toast } from "sonner";
import defaultCursorPreviewUrl from "@/assets/cursors/Cursor=Default.svg";
import GradientEditor, { type GradientEditorState } from "@/components/ui/gradient-editor";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
+import { toFileUrl } from "@/components/video-editor/projectPersistence";
import { WALLPAPER_MOTIONS, type WallpaperMotion } from "@/components/video-editor/types";
import { useI18n, useScopedT } from "@/contexts/I18nContext";
import { resolveCaptionLane } from "@/lib/ai-edition/captions/settings";
@@ -80,7 +81,7 @@ import {
type TrimRun,
voiceoverPlacements,
} from "@/lib/ai-edition/timeline/aggregated-transcript";
-import { hasAnyClipWithCamera } from "@/lib/ai-edition/timeline/camera";
+import { assetCameraSource, hasAnyClipWithCamera } from "@/lib/ai-edition/timeline/camera";
import { formatMs } from "@/lib/ai-edition/timeline/format";
import { removedRawSpans } from "@/lib/ai-edition/timeline/programme-time";
import type {
@@ -2991,6 +2992,16 @@ export function LayoutPane() {
// still on disk. Say so, otherwise the only signal the user gets is their setting
// apparently having been thrown away.
const helpText = hasDocument && !hasAnyCamera ? ts("layout.helpNoWebcam") : ts("layout.help");
+ // The first camera on the timeline, as a URL the thumbnail can load. `assetCameraSource`
+ // rather than the raw track, for the same reason every other camera consumer uses it.
+ const cameraSrc = useMemo(() => {
+ if (!document) return null;
+ for (const clip of document.timeline.clips) {
+ const { path } = assetCameraSource(document.assets.find((a) => a.id === clip.assetId));
+ if (path) return /^(https?|blob|data):/.test(path) ? path : toFileUrl(path);
+ }
+ return null;
+ }, [document]);
const webcamCrop = settings.webcamCropRegion;
const cropZoomPct = Math.round(100 / webcamCrop.width);
// Read straight off the pan, not back out of the rect. The rect cannot answer at 100%
@@ -2998,8 +3009,6 @@ export function LayoutPane() {
// a drifting answer on the way there, because the offset gets squeezed toward the near
// edge as the window grows while the picture itself does not move.
const cropPan = settings.webcamCropPan;
- const cropPanX = cropPan.x * 100;
- const cropPanY = cropPan.y * 100;
/** Rect from zoom and pan. `pan * (1 - size)` cannot leave the frame, so nothing clamps. */
const cropRegionFor = (size: number, pan: { x: number; y: number }) => ({
x: pan.x * (1 - size),
@@ -3013,8 +3022,7 @@ export function LayoutPane() {
// writes, so dragging the zoom back and forth returns the framing it started from.
setLive({ webcamCropRegion: cropRegionFor(size, cropPan) });
};
- const setCropPan = (axis: "x" | "y", valuePct: number) => {
- const pan = { ...cropPan, [axis]: valuePct / 100 };
+ const setCropPan = (pan: { x: number; y: number }) => {
// One patch for both, so a half-written pair can never reach disk.
setLive({ webcamCropPan: pan, webcamCropRegion: cropRegionFor(webcamCrop.width, pan) });
};
@@ -3249,6 +3257,20 @@ export function LayoutPane() {
</>
) : null}
<div className={styles.sectionLabel}>{ts("layout.webcamFraming")}</div>
+ <WebcamFraming
+ label={ts("layout.webcamFraming")}
+ src={cameraSrc}
+ crop={webcamCrop}
+ pan={cropPan}
+ disabled={layoutControlsDisabled}
+ hint={
+ webcamCrop.width < 0.999
+ ? ts("layout.webcamFramingDrag")
+ : ts("layout.webcamFramingZoomFirst")
+ }
+ onPanLive={setCropPan}
+ onCommit={() => void commit()}
+ />
<div className={styles.sliderGrid}>
<SliderCell
label={ts("layout.webcamCropZoom")}
@@ -3260,31 +3282,138 @@ export function LayoutPane() {
onChange={setCropZoom}
onCommit={() => void commit()}
/>
- <SliderCell
- label={ts("layout.webcamCropX")}
- value={cropPanX}
- min={0}
- max={100}
- suffix="%"
- disabled={layoutControlsDisabled || webcamCrop.width >= 0.999}
- onChange={(value) => setCropPan("x", value)}
- onCommit={() => void commit()}
- />
- <SliderCell
- label={ts("layout.webcamCropY")}
- value={cropPanY}
- min={0}
- max={100}
- suffix="%"
- disabled={layoutControlsDisabled || webcamCrop.height >= 0.999}
- onChange={(value) => setCropPan("y", value)}
- onCommit={() => void commit()}
- />
</div>
</Pane>
);
}
+/** Où la webcam cadre, réglé à la main : une vignette de la caméra, le cadre gardé posé dessus,
+ * et on glisse le cadre pour choisir ce qu'elle montre. Remplace deux curseurs de déplacement
+ * qui ne disaient pas où l'on était dans l'image, et qui à 100 % ne déplaçaient rien. Le zoom
+ * reste un curseur, sous la vignette : c'est lui qui donne au cadre la place de bouger.
+ *
+ * Le déplacement s'exprime en `pan` (0–1 par axe) et non en position du cadre, comme le reste
+ * du panneau (#412) : c'est ce qui garde le cadrage à travers un passage par 100 %. Les
+ * flèches déplacent de 5 % et enregistrent à chaque pas ; le glisser écrit en direct et
+ * enregistre au relâchement, comme un curseur. */
+function WebcamFraming({
+ label,
+ src,
+ crop,
+ pan,
+ disabled,
+ hint,
+ onPanLive,
+ onCommit,
+}: {
+ label: string;
+ src: string | null;
+ crop: { x: number; y: number; width: number; height: number };
+ pan: { x: number; y: number };
+ disabled: boolean;
+ hint: string;
+ onPanLive: (pan: { x: number; y: number }) => void;
+ onCommit: () => void;
+}) {
+ const boxRef = useRef<HTMLDivElement | null>(null);
+ const dragRef = useRef<{ x: number; y: number; pan: { x: number; y: number } } | null>(null);
+ // The camera's own shape, once its metadata says; 16:9 until then.
+ const [aspect, setAspect] = useState(16 / 9);
+ const movable = !disabled && crop.width < 0.999;
+ const clamp01 = (v: number) => Math.min(1, Math.max(0, v));
+
+ const onPointerMove = (e: ReactPointerEvent<HTMLDivElement>) => {
+ const drag = dragRef.current;
+ const box = boxRef.current?.getBoundingClientRect();
+ if (!drag || !box || box.width === 0 || box.height === 0) return;
+ // The frame travels over (1 - size) of the picture, so a pixel of drag is worth more pan
+ // the bigger the frame is.
+ const free = 1 - crop.width;
+ onPanLive({
+ x: clamp01(drag.pan.x + (e.clientX - drag.x) / (box.width * free)),
+ y: clamp01(drag.pan.y + (e.clientY - drag.y) / (box.height * free)),
+ });
+ };
+ const endDrag = () => {
+ if (!dragRef.current) return;
+ dragRef.current = null;
+ onCommit();
+ };
+
+ return (
+ <div className={styles.framing}>
+ <div ref={boxRef} className={styles.framingBox} style={{ aspectRatio: aspect }}>
+ {src ? (
+ <video
+ className={styles.framingVideo}
+ src={src}
+ muted
+ playsInline
+ preload="metadata"
+ aria-hidden="true"
+ onLoadedMetadata={(e) => {
+ const video = e.currentTarget;
+ if (video.videoWidth > 0 && video.videoHeight > 0) {
+ setAspect(video.videoWidth / video.videoHeight);
+ }
+ // A frame from the take rather than its first one, which is often black.
+ video.currentTime = Math.min(1, (video.duration || 0) / 2);
+ }}
+ />
+ ) : null}
+ <div
+ className={styles.framingCrop}
+ data-movable={movable}
+ role="slider"
+ aria-label={label}
+ aria-orientation="horizontal"
+ aria-valuemin={0}
+ aria-valuemax={100}
+ aria-valuenow={Math.round(pan.x * 100)}
+ aria-valuetext={`${Math.round(pan.x * 100)}%, ${Math.round(pan.y * 100)}%`}
+ aria-disabled={!movable}
+ tabIndex={movable ? 0 : -1}
+ style={{
+ left: `${crop.x * 100}%`,
+ top: `${crop.y * 100}%`,
+ width: `${crop.width * 100}%`,
+ height: `${crop.height * 100}%`,
+ }}
+ onPointerDown={(e) => {
+ if (!movable) return;
+ e.currentTarget.setPointerCapture?.(e.pointerId);
+ dragRef.current = { x: e.clientX, y: e.clientY, pan };
+ }}
+ onPointerMove={onPointerMove}
+ onPointerUp={endDrag}
+ onPointerCancel={endDrag}
+ onKeyDown={(e) => {
+ if (!movable) return;
+ const step = 0.05;
+ const delta =
+ e.key === "ArrowLeft"
+ ? { x: -step, y: 0 }
+ : e.key === "ArrowRight"
+ ? { x: step, y: 0 }
+ : e.key === "ArrowUp"
+ ? { x: 0, y: -step }
+ : e.key === "ArrowDown"
+ ? { x: 0, y: step }
+ : null;
+ if (!delta) return;
+ // The editor shell seeks on the arrows, from WINDOW: keep them here.
+ e.preventDefault();
+ e.nativeEvent.stopPropagation();
+ onPanLive({ x: clamp01(pan.x + delta.x), y: clamp01(pan.y + delta.y) });
+ onCommit();
+ }}
+ />
+ </div>
+ <p className={styles.framingHint}>{hint}</p>
+ </div>
+ );
+}
+
// ─── Audio ────────────────────────────────────────────────────────
export function AudioPane() {
diff --git a/src/i18n/locales/ar/settings.json b/src/i18n/locales/ar/settings.json
index e0b2b3ab8..26051a0f7 100644
--- a/src/i18n/locales/ar/settings.json
+++ b/src/i18n/locales/ar/settings.json
@@ -275,6 +275,8 @@
"help": "طريقة دمج كاميرا الويب مع الشاشة: صورة داخل صورة، أو تكديس عمودي، أو إطار مزدوج، وشكل القناع والحجم والانعكاس.",
"mirrorWebcam": "عكس كاميرا الويب",
"webcamFraming": "تأطير كاميرا الويب",
+ "webcamFramingDrag": "اسحب الإطار لاختيار ما تعرضه الكاميرا.",
+ "webcamFramingZoomFirst": "كبّر الصورة ثم اسحب الإطار لاختيار ما تعرضه الكاميرا.",
"shapes": {
"rectangle": "مستطيل",
"rounded": "زوايا مستديرة",
@@ -294,11 +296,9 @@
"webcamCropZoom": "تكبير الاقتصاص",
"webcamSize": "حجم كاميرا الويب",
"dualFrame": "إطار مزدوج",
- "webcamCropY": "تحريك عمودي",
"verticalStack": "تكدس عمودي",
"pictureInPicture": "صورة داخل صورة",
"webcamShape": "شكل الكاميرا",
- "webcamCropX": "تحريك أفقي",
"reactiveWebcam": "تصغير عند التكبير",
"webcamBackground": "خلفية الكاميرا",
"helpNoWebcam": "لا يحتوي هذا المشروع على كاميرا، لذلك فإن عناصر التحكم في التخطيط معطّلة ويعرض الإعداد المسبق «بدون كاميرا». يُحتفظ بالتخطيط المحفوظ لحين إضافة كاميرا.",
diff --git a/src/i18n/locales/cs/settings.json b/src/i18n/locales/cs/settings.json
index a5af14849..43e80c523 100644
--- a/src/i18n/locales/cs/settings.json
+++ b/src/i18n/locales/cs/settings.json
@@ -275,6 +275,8 @@
"help": "Jak je webkamera složena s obrazovkou: obraz v obrazu, svislé skládání, dvojitý rám, tvar masky, velikost a zrcadlení.",
"mirrorWebcam": "Zrcadlit webkameru",
"webcamFraming": "Oříznutí kamery",
+ "webcamFramingDrag": "Přetažením rámečku zvolte, co kamera ukáže.",
+ "webcamFramingZoomFirst": "Přibližte obraz a přetažením rámečku zvolte, co kamera ukáže.",
"shapes": {
"rectangle": "Obdélník",
"rounded": "Zaoblený",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Přiblížení",
"webcamSize": "Velikost webkamery",
"dualFrame": "Dvojitý rám",
- "webcamCropY": "Svislé posouvání",
"verticalStack": "Svislé skládání",
"pictureInPicture": "Obraz v obrazu",
"webcamShape": "Tvar kamery",
- "webcamCropX": "Vodorovné posouvání",
"reactiveWebcam": "Zmenšit při přiblížení",
"webcamBackground": "Pozadí kamery",
"helpNoWebcam": "Tento projekt nemá kameru, takže ovládání rozvržení je vypnuto a předvolba zobrazuje „Bez webkamery”. Vaše uložené rozvržení je zachováno pro případ přidání kamery.",
diff --git a/src/i18n/locales/de/settings.json b/src/i18n/locales/de/settings.json
index cea0c489f..85d7ddd38 100644
--- a/src/i18n/locales/de/settings.json
+++ b/src/i18n/locales/de/settings.json
@@ -275,6 +275,8 @@
"help": "Wie die Webcam mit dem Bildschirm komponiert wird: Bild in Bild, vertikal gestapelt, Doppelrahmen, Maskenform, Größe und Spiegelung.",
"mirrorWebcam": "Webcam spiegeln",
"webcamFraming": "Webcam-Ausschnitt",
+ "webcamFramingDrag": "Ziehe den Rahmen, um den Bildausschnitt der Kamera zu wählen.",
+ "webcamFramingZoomFirst": "Zoome hinein und ziehe dann den Rahmen, um den Bildausschnitt der Kamera zu wählen.",
"shapes": {
"rectangle": "Rechteck",
"rounded": "Gerundet",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Zoom",
"webcamSize": "Webcam-Größe",
"dualFrame": "Doppelrahmen",
- "webcamCropY": "Vertikal verschieben",
"verticalStack": "Vertikal gestapelt",
"pictureInPicture": "Bild in Bild",
"webcamShape": "Kameraform",
- "webcamCropX": "Horizontal verschieben",
"reactiveWebcam": "Bei Zoom verkleinern",
"webcamBackground": "Kamera-Hintergrund",
"helpNoWebcam": "Dieses Projekt hat keine Kamera, deshalb sind die Layout-Regler aus und die Vorgabe zeigt „Keine Webcam“. Dein gespeichertes Layout bleibt erhalten, falls später eine Kamera dazukommt.",
diff --git a/src/i18n/locales/en/settings.json b/src/i18n/locales/en/settings.json
index cda57adce..f0569d52a 100644
--- a/src/i18n/locales/en/settings.json
+++ b/src/i18n/locales/en/settings.json
@@ -275,6 +275,8 @@
"help": "How the webcam is composed with the screen: picture-in-picture, vertical stack, dual frame, mask shape, size, and mirroring.",
"mirrorWebcam": "Mirror webcam",
"webcamFraming": "Webcam crop",
+ "webcamFramingDrag": "Drag the frame to choose what the camera shows.",
+ "webcamFramingZoomFirst": "Zoom in, then drag the frame to choose what the camera shows.",
"shapes": {
"rectangle": "Rect",
"rounded": "Rounded",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Zoom",
"webcamSize": "Webcam size",
"dualFrame": "Dual frame",
- "webcamCropY": "Pan vertically",
"verticalStack": "Vertical stack",
"pictureInPicture": "Picture in picture",
"webcamShape": "Camera shape",
- "webcamCropX": "Pan horizontally",
"reactiveWebcam": "Shrink on zoom",
"webcamBackground": "Camera background",
"helpNoWebcam": "This project has no camera, so the layout controls are off and the preset reads “No webcam”. Your saved layout is kept for when a camera is added.",
diff --git a/src/i18n/locales/es/settings.json b/src/i18n/locales/es/settings.json
index b35c499e6..bf97d9f39 100644
--- a/src/i18n/locales/es/settings.json
+++ b/src/i18n/locales/es/settings.json
@@ -275,6 +275,8 @@
"help": "Cómo se compone la webcam con la pantalla: imagen en imagen, pila vertical, marco doble, forma de máscara, tamaño y efecto espejo.",
"mirrorWebcam": "Reflejar cámara",
"webcamFraming": "Encuadre de cámara",
+ "webcamFramingDrag": "Arrastra el marco para elegir lo que muestra la cámara.",
+ "webcamFramingZoomFirst": "Acerca el zoom y arrastra el marco para elegir lo que muestra la cámara.",
"shapes": {
"rectangle": "Rect.",
"rounded": "Redondeado",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Zoom de recorte",
"webcamSize": "Tamaño de cámara",
"dualFrame": "Marco dual",
- "webcamCropY": "Desplazamiento vertical",
"verticalStack": "Apilado vertical",
"pictureInPicture": "Imagen en imagen",
"webcamShape": "Forma de cámara",
- "webcamCropX": "Desplazamiento horizontal",
"reactiveWebcam": "Reducir al ampliar",
"webcamBackground": "Fondo de la cámara",
"helpNoWebcam": "Este proyecto no tiene cámara, así que los controles de diseño están desactivados y el preajuste muestra «Sin cámara». Tu diseño guardado se conserva para cuando añadas una cámara.",
diff --git a/src/i18n/locales/fr/settings.json b/src/i18n/locales/fr/settings.json
index a699b627f..978f7f021 100644
--- a/src/i18n/locales/fr/settings.json
+++ b/src/i18n/locales/fr/settings.json
@@ -275,6 +275,8 @@
"help": "Composition de la webcam avec l'écran : incrustation, empilement vertical, double cadre, forme du masque, taille et effet miroir.",
"mirrorWebcam": "Inverser la webcam",
"webcamFraming": "Cadrage de la webcam",
+ "webcamFramingDrag": "Faites glisser le cadre pour choisir ce que montre la caméra.",
+ "webcamFramingZoomFirst": "Zoomez, puis faites glisser le cadre pour choisir ce que montre la caméra.",
"shapes": {
"rectangle": "Rect.",
"rounded": "Arrondi",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Zoom du recadrage",
"webcamSize": "Taille de la caméra",
"dualFrame": "Double cadre",
- "webcamCropY": "Déplacement vertical",
"verticalStack": "Empilement vertical",
"pictureInPicture": "Incrustation d'image",
"webcamShape": "Forme de la caméra",
- "webcamCropX": "Déplacement horizontal",
"reactiveWebcam": "Réduire au zoom",
"webcamBackground": "Arrière-plan de la caméra",
"helpNoWebcam": "Ce projet n’a pas de caméra : les réglages de disposition sont désactivés et le préréglage affiche « Sans webcam ». Votre disposition enregistrée est conservée pour le jour où une caméra sera ajoutée.",
diff --git a/src/i18n/locales/it/settings.json b/src/i18n/locales/it/settings.json
index 590b1e8dc..95e0c6a6d 100644
--- a/src/i18n/locales/it/settings.json
+++ b/src/i18n/locales/it/settings.json
@@ -275,6 +275,8 @@
"help": "Come la webcam viene composta con lo schermo: picture-in-picture, pila verticale, doppio riquadro, forma della maschera, dimensione e effetto specchio.",
"mirrorWebcam": "Specchia webcam",
"webcamFraming": "Inquadratura webcam",
+ "webcamFramingDrag": "Trascina il riquadro per scegliere cosa mostra la fotocamera.",
+ "webcamFramingZoomFirst": "Aumenta lo zoom, poi trascina il riquadro per scegliere cosa mostra la fotocamera.",
"shapes": {
"rectangle": "Rett.",
"rounded": "Arrotondato",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Zoom ritaglio",
"webcamSize": "Dimensione webcam",
"dualFrame": "Doppio frame",
- "webcamCropY": "Spostamento verticale",
"verticalStack": "Pila verticale",
"pictureInPicture": "Immagine nell'immagine",
"webcamShape": "Forma fotocamera",
- "webcamCropX": "Spostamento orizzontale",
"reactiveWebcam": "Riduci con lo zoom",
"webcamBackground": "Sfondo della fotocamera",
"helpNoWebcam": "Questo progetto non ha una webcam, quindi i controlli di layout sono disattivati e il preset mostra «Nessuna webcam». Il layout salvato viene conservato per quando aggiungerai una webcam.",
diff --git a/src/i18n/locales/ja-JP/settings.json b/src/i18n/locales/ja-JP/settings.json
index 7ee3bcc51..518143984 100644
--- a/src/i18n/locales/ja-JP/settings.json
+++ b/src/i18n/locales/ja-JP/settings.json
@@ -275,6 +275,8 @@
"help": "ウェブカメラと画面の合成方法: ピクチャインピクチャ、縦積み、デュアルフレーム、マスク形状、サイズ、左右反転。",
"mirrorWebcam": "Webカメラを反転",
"webcamFraming": "ウェブカメラの構図",
+ "webcamFramingDrag": "枠をドラッグして、カメラに映す範囲を選びます。",
+ "webcamFramingZoomFirst": "ズームしてから枠をドラッグし、カメラに映す範囲を選びます。",
"shapes": {
"rectangle": "長方形",
"rounded": "角丸",
@@ -294,11 +296,9 @@
"webcamCropZoom": "クロップのズーム",
"webcamSize": "カメラのサイズ",
"dualFrame": "デュアルフレーム",
- "webcamCropY": "垂直方向に移動",
"verticalStack": "縦並び",
"pictureInPicture": "ピクチャーインピクチャ",
"webcamShape": "カメラの形状",
- "webcamCropX": "水平方向に移動",
"reactiveWebcam": "ズーム時に縮小",
"webcamBackground": "カメラ背景",
"helpNoWebcam": "このプロジェクトにはカメラがないため、レイアウトの設定は無効で、プリセットは「Webカメラなし」と表示されます。保存されたレイアウトは、カメラを追加したときのために保持されます。",
diff --git a/src/i18n/locales/ko-KR/settings.json b/src/i18n/locales/ko-KR/settings.json
index 612d21dbd..d89c08a28 100644
--- a/src/i18n/locales/ko-KR/settings.json
+++ b/src/i18n/locales/ko-KR/settings.json
@@ -275,6 +275,8 @@
"help": "웹캠과 화면을 합성하는 방식: PIP, 세로 배치, 이중 프레임, 마스크 모양, 크기, 좌우 반전.",
"mirrorWebcam": "웹캠 미러링",
"webcamFraming": "웹캠 구도",
+ "webcamFramingDrag": "프레임을 드래그해 카메라에 보일 부분을 고르세요.",
+ "webcamFramingZoomFirst": "확대한 다음 프레임을 드래그해 카메라에 보일 부분을 고르세요.",
"shapes": {
"rectangle": "직사각형",
"rounded": "둥근 모서리",
@@ -294,11 +296,9 @@
"webcamCropZoom": "자르기 확대",
"webcamSize": "웹캠 크기",
"dualFrame": "듀얼 프레임",
- "webcamCropY": "세로 이동",
"verticalStack": "세로 배치",
"pictureInPicture": "화면 속 화면",
"webcamShape": "카메라 모양",
- "webcamCropX": "가로 이동",
"reactiveWebcam": "확대 시 축소",
"webcamBackground": "카메라 배경",
"helpNoWebcam": "이 프로젝트에는 카메라가 없어 레이아웃 설정이 비활성화되고 프리셋이 “웹캠 없음”으로 표시됩니다. 저장된 레이아웃은 카메라를 추가할 때를 위해 유지됩니다.",
diff --git a/src/i18n/locales/pt-BR/settings.json b/src/i18n/locales/pt-BR/settings.json
index 0bff96535..4e12e6966 100644
--- a/src/i18n/locales/pt-BR/settings.json
+++ b/src/i18n/locales/pt-BR/settings.json
@@ -275,6 +275,8 @@
"help": "Como a webcam é composta com a tela: picture-in-picture, pilha vertical, quadro duplo, formato da máscara, tamanho e espelhamento.",
"mirrorWebcam": "Espelhar Webcam",
"webcamFraming": "Enquadramento da webcam",
+ "webcamFramingDrag": "Arraste o quadro para escolher o que a câmera mostra.",
+ "webcamFramingZoomFirst": "Aumente o zoom e arraste o quadro para escolher o que a câmera mostra.",
"shapes": {
"rectangle": "Ret.",
"rounded": "Arredondado",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Zoom do recorte",
"webcamSize": "Tamanho da Webcam",
"dualFrame": "Quadro Duplo",
- "webcamCropY": "Deslocamento vertical",
"verticalStack": "Empilhamento Vertical",
"pictureInPicture": "Picture in Picture",
"webcamShape": "Formato da Câmera",
- "webcamCropX": "Deslocamento horizontal",
"reactiveWebcam": "Encolher ao ampliar",
"webcamBackground": "Plano de fundo da câmera",
"helpNoWebcam": "Este projeto não tem câmera, então os controles de layout estão desativados e a predefinição mostra “Sem Webcam”. Seu layout salvo é mantido para quando você adicionar uma câmera.",
diff --git a/src/i18n/locales/ru/settings.json b/src/i18n/locales/ru/settings.json
index 5d58aab74..9bd91d936 100644
--- a/src/i18n/locales/ru/settings.json
+++ b/src/i18n/locales/ru/settings.json
@@ -275,6 +275,8 @@
"help": "Как камера совмещается с экраном: «картинка в картинке», вертикальная стопка, двойной кадр, форма маски, размер и зеркальное отражение.",
"mirrorWebcam": "Зеркалить веб-камеру",
"webcamFraming": "Кадрирование веб-камеры",
+ "webcamFramingDrag": "Перетащите рамку, чтобы выбрать, что показывает камера.",
+ "webcamFramingZoomFirst": "Увеличьте масштаб, затем перетащите рамку, чтобы выбрать, что показывает камера.",
"shapes": {
"rectangle": "Прямоуг.",
"rounded": "Скруглённый",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Масштаб обрезки",
"webcamSize": "Размер веб-камеры",
"dualFrame": "Двойной кадр",
- "webcamCropY": "Смещение по вертикали",
"verticalStack": "Вертикальный стек",
"pictureInPicture": "Картинка в картинке",
"webcamShape": "Форма камеры",
- "webcamCropX": "Смещение по горизонтали",
"reactiveWebcam": "Уменьшать при зуме",
"webcamBackground": "Фон камеры",
"helpNoWebcam": "В этом проекте нет камеры, поэтому настройки компоновки отключены, а пресет показывает «Без веб-камеры». Сохранённая компоновка останется на случай, если вы добавите камеру.",
diff --git a/src/i18n/locales/tr/settings.json b/src/i18n/locales/tr/settings.json
index b5f0aba3c..a355c34c0 100644
--- a/src/i18n/locales/tr/settings.json
+++ b/src/i18n/locales/tr/settings.json
@@ -275,6 +275,8 @@
"help": "Web kamerasının ekranla birleştirilme biçimi: resim içinde resim, dikey yığın, çift çerçeve, maske şekli, boyut ve aynalama.",
"mirrorWebcam": "Web kamerasını aynala",
"webcamFraming": "Webcam kadrajı",
+ "webcamFramingDrag": "Kameranın ne göstereceğini seçmek için çerçeveyi sürükleyin.",
+ "webcamFramingZoomFirst": "Yakınlaştırın, ardından kameranın ne göstereceğini seçmek için çerçeveyi sürükleyin.",
"shapes": {
"rectangle": "Dikdörtgen",
"rounded": "Yuvarlatılmış",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Kırpma yakınlaştırması",
"webcamSize": "Webcam Boyutu",
"dualFrame": "Çift Kare",
- "webcamCropY": "Dikey kaydırma",
"verticalStack": "Dikey Yığın",
"pictureInPicture": "Resim İçinde Resim",
"webcamShape": "Kamera Şekli",
- "webcamCropX": "Yatay kaydırma",
"reactiveWebcam": "Yakınlaştırınca küçült",
"webcamBackground": "Kamera Arka Planı",
"helpNoWebcam": "Bu projede kamera yok; bu yüzden yerleşim denetimleri kapalı ve ön ayar “Web kamerası yok” gösteriyor. Kaydettiğiniz yerleşim, bir kamera eklediğinizde kullanılmak üzere korunur.",
diff --git a/src/i18n/locales/vi/settings.json b/src/i18n/locales/vi/settings.json
index 19a0b8ce0..838ffaefb 100644
--- a/src/i18n/locales/vi/settings.json
+++ b/src/i18n/locales/vi/settings.json
@@ -275,6 +275,8 @@
"help": "Cách ghép webcam với màn hình: hình trong hình, xếp dọc, khung đôi, hình dạng mặt nạ, kích thước và lật gương.",
"mirrorWebcam": "Lật webcam",
"webcamFraming": "Khung hình webcam",
+ "webcamFramingDrag": "Kéo khung để chọn phần camera hiển thị.",
+ "webcamFramingZoomFirst": "Phóng to, rồi kéo khung để chọn phần camera hiển thị.",
"shapes": {
"rectangle": "Chữ nhật",
"rounded": "Bo góc",
@@ -294,11 +296,9 @@
"webcamCropZoom": "Thu phóng vùng cắt",
"webcamSize": "Kích thước Webcam",
"dualFrame": "Khung kép",
- "webcamCropY": "Dịch chuyển dọc",
"verticalStack": "Xếp chồng dọc",
"pictureInPicture": "Hình trong hình",
"webcamShape": "Hình dạng máy ảnh",
- "webcamCropX": "Dịch chuyển ngang",
"reactiveWebcam": "Thu nhỏ khi phóng to",
"webcamBackground": "Nền máy ảnh",
"helpNoWebcam": "Dự án này không có camera nên các tùy chọn bố cục bị tắt và thiết lập sẵn hiển thị “Không có webcam”. Bố cục đã lưu của bạn vẫn được giữ lại cho khi bạn thêm camera.",
diff --git a/src/i18n/locales/zh-CN/settings.json b/src/i18n/locales/zh-CN/settings.json
index 32fa8a867..5af14f5fc 100644
--- a/src/i18n/locales/zh-CN/settings.json
+++ b/src/i18n/locales/zh-CN/settings.json
@@ -275,6 +275,8 @@
"help": "摄像头与屏幕的合成方式:画中画、垂直堆叠、双画面、遮罩形状、大小和镜像。",
"mirrorWebcam": "镜像摄像头",
"webcamFraming": "摄像头构图",
+ "webcamFramingDrag": "拖动取景框,选择摄像头显示的范围。",
+ "webcamFramingZoomFirst": "先放大,再拖动取景框,选择摄像头显示的范围。",
"shapes": {
"rectangle": "矩形",
"rounded": "圆角",
@@ -294,11 +296,9 @@
"webcamCropZoom": "裁剪缩放",
"webcamSize": "摄像头大小",
"dualFrame": "双画框",
- "webcamCropY": "垂直移动",
"verticalStack": "垂直堆叠",
"pictureInPicture": "画中画",
"webcamShape": "摄像头形状",
- "webcamCropX": "水平移动",
"reactiveWebcam": "缩放时缩小",
"webcamBackground": "摄像头背景",
"helpNoWebcam": "此项目没有摄像头,因此布局控件已禁用,预设显示为“无摄像头”。你保存的布局会保留,以便添加摄像头后使用。",
diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.json
index 83877a84f..423c59340 100644
--- a/src/i18n/locales/zh-TW/settings.json
+++ b/src/i18n/locales/zh-TW/settings.json
@@ -275,6 +275,8 @@
"help": "攝影機與螢幕的合成方式:子母畫面、垂直堆疊、雙畫面、遮罩形狀、大小與鏡像。",
"mirrorWebcam": "鏡像攝影機",
"webcamFraming": "攝影機構圖",
+ "webcamFramingDrag": "拖曳取景框,選擇攝影機顯示的範圍。",
+ "webcamFramingZoomFirst": "先放大,再拖曳取景框,選擇攝影機顯示的範圍。",
"shapes": {
"rectangle": "矩形",
"rounded": "圓角",
@@ -294,11 +296,9 @@
"webcamCropZoom": "裁切縮放",
"webcamSize": "攝影機大小",
"dualFrame": "雙畫框",
- "webcamCropY": "垂直移動",
"verticalStack": "垂直堆疊",
"pictureInPicture": "子母畫面",
"webcamShape": "攝影機形狀",
- "webcamCropX": "水平移動",
"reactiveWebcam": "縮放時縮小",
"webcamBackground": "攝影機背景",
"helpNoWebcam": "此專案沒有攝影機,因此版面配置控制項已停用,預設顯示為「無網路攝影機」。你儲存的版面配置會保留,以便新增攝影機後使用。",