The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.
Studio: a long project opens at once; pages open as the playhead nears them (#240)
riverisbuildingdba3a04f4688
diff --git a/.changeset/open-long-films-at-once.md b/.changeset/open-long-films-at-once.mdnew file mode 100644index 0000000..a2cb953--- /dev/null+++ b/.changeset/open-long-films-at-once.md@@ -0,0 +1,5 @@+---+"openfilm": patch+---++Studio: a long project opens at once. The playhead moves and plays from the start, and the picture comes in about a second. A page whose length its clip gives opens when the playhead comes near it, rather than every page before the first frame (9.5 s on a 6-minute film of 371 clips, now 0.2 s). The colored line under the ruler is gone: what plays late is still rendered in the background, without showing it.diff --git a/packages/openfilm/src/timeline.mjs b/packages/openfilm/src/timeline.mjsindex 0d4cc89..54fca3f 100644--- a/packages/openfilm/src/timeline.mjs+++ b/packages/openfilm/src/timeline.mjs@@ -665,6 +665,15 @@ function wakePage(c) {c.drawn = false;/* its own size, when it says one (else its clip's size, or the stage's: see settle) */if (c.child.width > 0 && c.child.height > 0) c.own = { w: c.child.width, h: c.child.height };+ /* opened for the first time after the film was up (see load): its own length and size, which the film had not+ waited for, placed by now (it shows only once drawn) and told to the editor */+ if (c.unread) {+ c.unread = false;+ const length = c.child.duration;+ c.native = Number.isFinite(length) && length > 0 ? length : undefined;+ if (c.own && (c.own.w !== c.nw || c.own.h !== c.nh)) { c.nw = c.own.w; c.nh = c.own.h; place(c, c.row.box); }+ window.__filmEditor.learned?.();+ }window.__filmEditor.stage.woke?.();});pagesAwake.add(c);@@ -844,6 +853,11 @@ async function load(row, track, ti, el) {/* a page that is not there: its clip keeps its time, at the stage's size */c.missing = true;c.nw = stage.w; c.nh = stage.h;+ } else if (SKIP_MISSING && row.time?.length === 2) {+ /* an editor's preview: a page whose #t= is its length opens when the playhead comes near (see near), its own+ length and size learned then (see wakePage); the film is up without waiting for every page of a long film */+ c.row = row;+ c.unread = true;} else {/* opened to read its length (the host serves it unopened, see holdPages; filmStart gives it the stage's size) */c.row = row;@@ -1215,6 +1229,8 @@ window.__filmEditor = {updated: null,woke: null,},+ /** Set by a host (Studio's bridge) to hear of a page's own length and size learned as it first opens (see load). */+ learned: null,/*** The film after an edit (`look`: its file's filmHead, when the edit came from the file; another one than this film* was loaded with needs the page loaded again): changed in place (see change), resolving to true, or to false whendiff --git a/packages/openfilm/src/timeline.test.mjs b/packages/openfilm/src/timeline.test.mjsindex 105d467..f9abcc4 100644--- a/packages/openfilm/src/timeline.test.mjs+++ b/packages/openfilm/src/timeline.test.mjs@@ -224,6 +224,45 @@ test('a missing file stops a film, said by its name; an editor\'s preview (film-}});+test('an editor\'s preview is up without opening a page whose time is its length: it opens at its moment, its own length and size told then', { timeout: 60_000 }, async () => {+ const dir = mkdtempSync(join(tmpdir(), 'of-unread-'));+ writeFileSync(join(dir, 'a.html'), page('a', 2));+ writeFileSync(join(dir, 'b.html'), page('b', 3));+ writeFileSync(join(dir, 'film.html'), filmHtml({ stage: { w: 640, h: 360 }, tracks: [{ clips: [+ { src: 'a.html', id: 'a' },+ { src: 'b.html', id: 'b', at: 2, time: [0, 3] },+ ] }] }));+ const site = await serve(dir);+ const browser = await launch();+ const opened = (p) => p.evaluate(() => [...document.querySelectorAll('iframe')].map((el) => Boolean(el.contentWindow?.film)));+ try {+ /* an export, a check: every page opened before the film is up, as before */+ const strict = await browser.newPage();+ await strict.goto(`${site.url}/film.html`);+ await strict.waitForFunction(() => Boolean(window.film));+ await strict.evaluate(() => window.film.ready);+ assert.deepEqual(await opened(strict), [true, true]);+ const preview = await browser.newPage();+ await preview.goto(`${site.url}/film.html?film-missing=skip`);+ await preview.waitForFunction(() => Boolean(window.film));+ await preview.evaluate(() => { window.learned = 0; window.__filmEditor.learned = () => { window.learned += 1; }; return window.film.ready; });+ /* `a` has no time: opened for its length. `b`'s time is its length: its place known, the page not opened */+ assert.deepEqual(await opened(preview), [true, false]);+ assert.equal(await preview.evaluate(() => window.film.duration), 5);+ assert.deepEqual(await preview.evaluate(() => window.__filmSpans().map((c) => [c.id, c.at, c.end, c.native, c.w, c.h, Boolean(c.reflows)])),+ [['a', 0, 2, 2, 320, 180, false], ['b', 2, 5, null, 640, 360, true]]);+ await preview.evaluate(() => window.__filmEditor.watch(3));+ assert.deepEqual(await opened(preview), [true, true]);+ assert.deepEqual(await preview.evaluate(() => window.__filmSpans().map((c) => [c.id, c.at, c.end, c.native, c.w, c.h, Boolean(c.reflows)])),+ [['a', 0, 2, 2, 320, 180, false], ['b', 2, 5, 3, 320, 180, false]], 'opened: its own length and size');+ assert.equal(await preview.evaluate(() => window.learned), 1, 'the editor told once');+ assert.equal(await preview.evaluate(() => document.querySelectorAll('iframe')[1].style.visibility), 'visible');+ } finally {+ await browser.close();+ await site.close();+ }+});+const hasFfmpeg = (() => { try { execFileSync('ffmpeg', ['-version'], { stdio: 'ignore' }); return true; } catch { return false; } })();/** A folder with two short videos (a numbered test picture, `seconds` long at 10 fps) and a sound. */diff --git a/packages/openfilm/studio/server/bridge.js b/packages/openfilm/studio/server/bridge.jsindex e881a58..71e8f85 100644--- a/packages/openfilm/studio/server/bridge.js+++ b/packages/openfilm/studio/server/bridge.js@@ -20,6 +20,7 @@* no new frame, whether a render played, and per half second of film [its start,* refreshes, late]* { type: 'updated', seq, inPlace, duration, sounds, spans } (inPlace false: load the page again)+ * { type: 'spans', spans } a page opened for the first time said its own length and size* { type: 'picked', seq, target } (null: nothing there)* { type: 'error', message } the film or a page failed*@@ -60,7 +61,13 @@and draws and answers nothing after — a page error for each later message would only repeat it */let up = null;const loaded = film.then(async (f) => {- try { await f.ready; up = f; post({ type: 'ready', ...facts(f), origin: performance.timeOrigin }); return f; } catch (e) { fail(e); return null; }+ try {+ await f.ready;+ up = f;+ post({ type: 'ready', ...facts(f), origin: performance.timeOrigin });+ if (editor()) editor().learned = () => post({ type: 'spans', spans: facts(f).spans });+ return f;+ } catch (e) { fail(e); return null; }});/* one frame at a time: a seek that comes while one is drawing waits, and only the latest waiting one is drawn */diff --git a/packages/openfilm/studio/ui/src/components/ProjectView.tsx b/packages/openfilm/studio/ui/src/components/ProjectView.tsxindex 9a9ecd0..1d977d6 100644--- a/packages/openfilm/studio/ui/src/components/ProjectView.tsx+++ b/packages/openfilm/studio/ui/src/components/ProjectView.tsx@@ -606,7 +606,12 @@ export function ProjectView({ projectId, onProject, onLeave }: {/* the film's length: the preview's, unless it could not draw the film; that length is then of the film before(a clip that lost its length still counted at its old one), and the timeline's own reading of film.html stands,less the clips that have no length (drawn at a stand-in one) */- const totalMs = previewError ? blocksRef.current.reduce((end, b) => (b.noLength ? end : Math.max(end, Math.round(b.endMs))), 0) : drawnMs;+ const totalMs = previewError || !info ? blocksRef.current.reduce((end, b) => (b.noLength ? end : Math.max(end, Math.round(b.endMs))), 0) : drawnMs;+ /* before the preview is up (a long film still loading), that reading is the film's length too: the playhead moves+ and plays at once, the picture and the sound join it as they come (see onInfo) */+ React.useEffect(() => {+ if (!info && totalMs > 0) player.current.duration = totalMs / 1000;+ }, [info, totalMs]);/* ── the project's editor settings (`.film/settings.json`): its frame rate, its tracks' names ── */const [settings, setSettings] = React.useState<ProjectSettings | null>(null);@@ -2862,7 +2867,8 @@ export function ProjectView({ projectId, onProject, onLeave }: {height: `${(frameBox.inner.h / frameBox.h) * 100}%`,}}><Preview ref={preview} folder={folder} stage={shownStage} time={() => player.current.time()} fps={exactRate(projectFps)}- onInfo={onInfo} onKey={previewKey} onError={setPreviewError} onPlayed={onPlayed}>+ onInfo={onInfo} onKey={previewKey} onError={setPreviewError} onPlayed={onPlayed}+ onSpans={(next) => setInfo((had) => (had ? { ...had, spans: next } : had))}>{!fullscreen ? (<FilmStageSelectpreviewRef={preview}@@ -3080,7 +3086,6 @@ export function ProjectView({ projectId, onProject, onLeave }: {timeMs={timeMs}clock={playing ? clock : null}playing={playing}- previewBar={previewRenders.bar}onSeek={(ms) => seek(ms)}onScrubPreview={scrubPreview}onScrubCommit={scrubCommit}diff --git a/packages/openfilm/studio/ui/src/components/Timeline.tsx b/packages/openfilm/studio/ui/src/components/Timeline.tsxindex 06f0f0a..5de7b91 100644--- a/packages/openfilm/studio/ui/src/components/Timeline.tsx+++ b/packages/openfilm/studio/ui/src/components/Timeline.tsx@@ -156,7 +156,6 @@ import { BlockThumbs } from './BlockThumbs';import { BlockWaveform } from './BlockWaveform';import { ContextMenu, type ContextMenuEntry } from './ContextMenu';import type { PlaybackClock } from './LiveTime';-import type { PreviewBarRange } from '@/editor/use-preview-renders';import { CaptionsIcon } from './player-controls/controls-bar';import { isTypingTarget } from './typing-target';import { Popover } from './Popover';@@ -599,8 +598,6 @@ export interface TimelineProps {/** The playback clock. With it, playing does not re-render the timeline: the playhead and follow-scroll read it. */clock?: PlaybackClock | null;playing: boolean;- /** Stretches that play late in the viewer, and their renders (editor/use-preview-renders): a line under the ruler. */- previewBar?: readonly PreviewBarRange[];/** While dragging the playhead: move the picture, do not settle. */onScrubPreview: (ms: number) => void;/** On release, once: settle. */@@ -954,7 +951,6 @@ export const Timeline = React.memo(function Timeline({timeMs,clock,playing,- previewBar,onScrubPreview,onScrubCommit,onHoverPreview,@@ -4115,7 +4111,6 @@ export const Timeline = React.memo(function Timeline({style={{ width: trackPx, cursor: onReferRuler ? (rulerHoverMs == null && !referDraft ? 'col-resize' : 'crosshair') : 'col-resize' }}>{tickMarks}- {previewBar?.length ? <PreviewBar ranges={previewBar} pxPerMs={pxPerMs} /> : null}{onReferRuler ? <RulerRefer hoverMs={rulerHoverMs} draft={referDraft} pxPerMs={pxPerMs} widthPx={trackPx} /> : null}</div></div>@@ -4701,33 +4696,6 @@ function holdAt(el: HTMLElement): Animation {return a;}-/** The line under the ruler's colors: plays late, rendering, rendered, could not be rendered. */-const PREVIEW_BAR: Record<PreviewBarRange['state'], string> = { late: '#e5484d', making: '#e8c547', ready: '#3dd68c', failed: '#8b8d98' };--/**- * Under the ruler, where the viewer plays late, and its renders: red plays late (rendered once the film stops), yellow- * is rendering, green plays from its render. Each says so when pointed at; a press goes on to the ruler.- */-function PreviewBar({ ranges, pxPerMs }: { ranges: readonly PreviewBarRange[]; pxPerMs: number }) {- const t = useT();- const title = (r: PreviewBarRange) => (r.state === 'late' ? t('timeline.previewLate')- : r.state === 'making' ? t('timeline.previewMaking').replace('{p}', String(Math.round((r.ratio ?? 0) * 100)))- : r.state === 'ready' ? t('timeline.previewReady') : t('timeline.previewFailed'));- return (- <>- {ranges.map((r) => (- <div- key={`${r.a}-${r.b}`}- data-preview-bar={r.state}- title={title(r)}- className="absolute bottom-0"- style={{ left: r.a * 1000 * pxPerMs, width: Math.max(2, (r.b - r.a) * 1000 * pxPerMs), height: 3, background: PREVIEW_BAR[r.state], opacity: 0.9 }}- />- ))}- </>- );-}-/*** The playhead line — while playing it moves by itself, outside React and off the page's main thread: an animation* from where the film is to its end, on the clock's line (`line`: where the film is at a moment, and how fast it goes),diff --git a/packages/openfilm/studio/ui/src/editor/Preview.tsx b/packages/openfilm/studio/ui/src/editor/Preview.tsxindex 73f5f69..a263c49 100644--- a/packages/openfilm/studio/ui/src/editor/Preview.tsx+++ b/packages/openfilm/studio/ui/src/editor/Preview.tsx@@ -93,6 +93,8 @@ type Props = {onError?(message: string | null): void;/** How playing went, about once a second while it plays. */onPlayed?(report: PlayedReport): void;+ /** The clips as placed, again: a page opened for the first time said its own length and size (the rest is as it was). */+ onSpans?(spans: ClipSpan[]): void;children?: ReactNode;};@@ -101,7 +103,7 @@ const CLOCK_PINGS = 5;/** How long the viewer keeps another size before the film is loaded again for it (ms): not at each step of a drag. */const RESCALE_MS = 600;-export const Preview = forwardRef<PreviewHandle, Props>(function Preview({ folder, stage, time, fps, onInfo, onKey, onError, onPlayed, children }, ref) {+export const Preview = forwardRef<PreviewHandle, Props>(function Preview({ folder, stage, time, fps, onInfo, onKey, onError, onPlayed, onSpans, children }, ref) {const t = useT();const origin = new URL(folder).origin;const [frames, setFrames] = useState<Frame[]>([{ key: 1, ready: false }]);@@ -138,6 +140,8 @@ export const Preview = forwardRef<PreviewHandle, Props>(function Preview({ foldeonErrorRef.current = onError;const onPlayedRef = useRef(onPlayed);onPlayedRef.current = onPlayed;+ const onSpansRef = useRef(onSpans);+ onSpansRef.current = onSpans;/* the stretches rendered to play in the film's place: told to each load of the film once it is up */const rendered = useRef<PreviewRender[]>([]);useEffect(() => { onErrorRef.current?.(failed); }, [failed]);@@ -311,6 +315,8 @@ export const Preview = forwardRef<PreviewHandle, Props>(function Preview({ folde} else if (m.type === 'updated') {if (m.inPlace) onInfo(m as FilmInfo);else reload();+ } else if (m.type === 'spans') {+ if (key === shownRef.current?.key && Array.isArray(m.spans)) onSpansRef.current?.(m.spans);} else if (m.type === 'picked') {const resolve = picks.current.get(m.seq);picks.current.delete(m.seq);diff --git a/packages/openfilm/studio/ui/src/editor/use-preview-renders.ts b/packages/openfilm/studio/ui/src/editor/use-preview-renders.tsindex 17ee1a4..6667a4a 100644--- a/packages/openfilm/studio/ui/src/editor/use-preview-renders.ts+++ b/packages/openfilm/studio/ui/src/editor/use-preview-renders.ts@@ -3,14 +3,12 @@* are asked to be rendered once the film has stopped for a moment (studio/server/preview-cache.mjs, in the* background), followed while they are made, and told to the preview when they are, to play in the film's place.* Anything changed in the project (film.html, a page, a file) and those renders are not played until the server names- * them for the project as it is now. `bar`: what the timeline's ruler shows of them.+ * them for the project as it is now.*/import { useCallback, useEffect, useMemo, useRef, useState, type RefObject } from 'react';import { addHeat, joinStretches, lateStretches, sameStretches, type Heat } from '@/lib/preview-renders';import type { PlayedReport, PreviewHandle, PreviewRender } from './Preview';-/** A stretch on the ruler: plays late (not rendered), being rendered, rendered, or one that could not be. */-export type PreviewBarRange = { a: number; b: number; state: 'late' | 'making' | 'ready' | 'failed'; ratio?: number };type Made = { a: number; b: number; key: string; state: 'waiting' | 'making' | 'ready' | 'failed'; ratio?: number };/** How long the film stays stopped (and unchanged) before what plays late is rendered (ms). */@@ -87,12 +85,5 @@ export function usePreviewRenders({ projectId, folder, fps, playing, on, film, f? made.filter((r) => r.state === 'ready').map((r) => ({ a: r.a, b: r.b, src: `${folder}__film/preview/${r.key}.mp4` })): []), [on, made, folder]);useEffect(() => { preview.current?.renders?.(list); }, [list, preview]);- const bar = useMemo<PreviewBarRange[]>(() => {- if (!on) return [];- /* the server's answer is the stretches as asked, put on the frame grid; a stretch found late since is late */- const asked = made.map((r): PreviewBarRange => ({ a: r.a, b: r.b, state: r.state === 'waiting' ? 'making' : r.state, ...(r.state === 'making' ? { ratio: r.ratio ?? 0 } : {}) }));- const since = late.filter(([a, b]) => !made.some((r) => r.a < b && a < r.b)).map(([a, b]): PreviewBarRange => ({ a, b, state: 'late' }));- return [...asked, ...since].sort((x, y) => x.a - y.a);- }, [on, late, made]);- return { onPlayed, bar };+ return { onPlayed };}diff --git a/packages/openfilm/studio/ui/src/i18n/en.ts b/packages/openfilm/studio/ui/src/i18n/en.tsindex 2f81bce..e6c8e9b 100644--- a/packages/openfilm/studio/ui/src/i18n/en.ts+++ b/packages/openfilm/studio/ui/src/i18n/en.ts@@ -1237,10 +1237,6 @@ export const en = {mediaReconnecting: 'Reconnecting to this clip… it comes back on its own.',resize: 'Resize timeline',seek: 'Drag the playhead',- previewLate: 'Plays late here: renders when the film stops',- previewMaking: 'Rendering to play smoothly… {p}%',- previewReady: 'Rendered: plays smoothly here',- previewFailed: 'Couldn’t render this stretch: it plays live',split: 'Split',subtitles: 'Subtitles',subtitlesNone: 'No subtitles yet — they appear once the film has a voice',@@ -1561,7 +1557,7 @@ export const en = {fitPages: "Draw pages at the viewer’s size",fitPagesHint: "Canvas and 3D in web pages are drawn at the size the viewer shows them, which plays more smoothly and looks the same. Off: at the film’s full size. Exports always draw at full size.",renders: "Render what plays late",- rendersHint: "A stretch the viewer can’t play at full speed is rendered in the background once the film stops, and plays smoothly from then on. The timeline’s ruler marks it: red plays late, yellow is rendering, green is rendered.",+ rendersHint: "A stretch the viewer can’t play at full speed is rendered in the background once the film stops, and plays smoothly from then on.",},about: {group: 'About',diff --git a/packages/openfilm/studio/ui/src/i18n/es.ts b/packages/openfilm/studio/ui/src/i18n/es.tsindex 5dc6712..abeb20a 100644--- a/packages/openfilm/studio/ui/src/i18n/es.ts+++ b/packages/openfilm/studio/ui/src/i18n/es.ts@@ -1236,10 +1236,6 @@ export const es: Words = {mediaReconnecting: 'Reconectando con este clip… volverá por sí solo.',resize: 'Redimensionar línea de tiempo',seek: 'Arrastrar el cabezal de reproducción',- previewLate: 'Aquí se reproduce con retraso: se renderiza al detener la película',- previewMaking: 'Renderizando para reproducir con fluidez… {p}%',- previewReady: 'Renderizado: aquí se reproduce con fluidez',- previewFailed: 'No se pudo renderizar este tramo: se reproduce en vivo',split: 'Dividir',subtitles: 'Subtítulos',subtitlesNone: 'Aún no hay subtítulos: aparecen cuando la película tiene voz',@@ -1560,7 +1556,7 @@ export const es: Words = {fitPages: "Dibujar las páginas al tamaño del visor",fitPagesHint: "El canvas y el 3D de las páginas web se dibujan al tamaño con que los muestra el visor: se ven igual y se reproducen con más fluidez. Desactivado: al tamaño completo de la película. Las exportaciones siempre se dibujan a tamaño completo.",renders: "Renderizar lo que se reproduce con retraso",- rendersHint: "Un tramo que el visor no puede reproducir a velocidad completa se renderiza en segundo plano cuando se detiene la película, y desde entonces se reproduce con fluidez. La regla de la línea de tiempo lo marca: rojo se reproduce con retraso, amarillo se está renderizando, verde ya está renderizado.",+ rendersHint: "Un tramo que el visor no puede reproducir a velocidad completa se renderiza en segundo plano cuando se detiene la película, y desde entonces se reproduce con fluidez.",},about: {group: 'Acerca de',diff --git a/packages/openfilm/studio/ui/src/i18n/ja.ts b/packages/openfilm/studio/ui/src/i18n/ja.tsindex 6c1225d..3d19213 100644--- a/packages/openfilm/studio/ui/src/i18n/ja.ts+++ b/packages/openfilm/studio/ui/src/i18n/ja.ts@@ -1236,10 +1236,6 @@ export const ja: Words = {mediaReconnecting: 'このクリップに再接続しています… 自動的に復帰します。',resize: 'タイムラインのサイズを変更',seek: '再生ヘッドをドラッグ',- previewLate: 'ここは再生が遅れます:再生を止めるとレンダリングします',- previewMaking: '滑らかに再生するためレンダリング中… {p}%',- previewReady: 'レンダリング済み:ここは滑らかに再生されます',- previewFailed: 'この区間はレンダリングできませんでした:リアルタイムで再生します',split: '分割',subtitles: '字幕',subtitlesNone: '字幕はまだありません — 映像に音声が入ると表示されます',@@ -1560,7 +1556,7 @@ export const ja: Words = {fitPages: "Web ページをビューアのサイズで描画",fitPagesHint: "Web ページの Canvas と 3D を、ビューアに表示されるサイズで描画します。見た目は同じで、より滑らかに再生できます。オフにすると作品のフルサイズで描画します。書き出しは常にフルサイズです。",renders: "遅れる区間をレンダリング",- rendersHint: "ビューアがフルスピードで再生できない区間を、再生を止めたあとバックグラウンドでレンダリングし、以後は滑らかに再生します。タイムラインのルーラーに表示されます:赤は遅れる区間、黄はレンダリング中、緑はレンダリング済みです。",+ rendersHint: "ビューアがフルスピードで再生できない区間を、再生を止めたあとバックグラウンドでレンダリングし、以後は滑らかに再生します。",},about: {group: 'このアプリについて',diff --git a/packages/openfilm/studio/ui/src/i18n/ko.ts b/packages/openfilm/studio/ui/src/i18n/ko.tsindex 92c60d7..d8b793e 100644--- a/packages/openfilm/studio/ui/src/i18n/ko.ts+++ b/packages/openfilm/studio/ui/src/i18n/ko.ts@@ -1233,10 +1233,6 @@ export const ko: Words = {mediaReconnecting: '이 클립에 다시 연결하는 중… 곧 자동으로 돌아옵니다.',resize: '타임라인 크기 조정',seek: '재생 헤드 드래그',- previewLate: '여기는 느리게 재생됩니다: 재생을 멈추면 렌더링합니다',- previewMaking: '부드럽게 재생하도록 렌더링 중… {p}%',- previewReady: '렌더링됨: 여기는 부드럽게 재생됩니다',- previewFailed: '이 구간은 렌더링하지 못했습니다: 실시간으로 재생합니다',split: '분할',subtitles: '자막',subtitlesNone: '아직 자막이 없습니다. 영상에 음성이 생기면 나타납니다',@@ -1556,7 +1552,7 @@ export const ko: Words = {fitPages: "웹 페이지를 뷰어 크기로 그리기",fitPagesHint: "웹 페이지의 Canvas와 3D를 뷰어에 보이는 크기로 그립니다. 보기에는 같고 더 부드럽게 재생됩니다. 끄면 영상의 전체 크기로 그립니다. 내보내기는 항상 전체 크기입니다.",renders: "느리게 재생되는 구간 렌더링",- rendersHint: "뷰어가 제 속도로 재생하지 못하는 구간은 재생을 멈춘 뒤 백그라운드에서 렌더링되고, 그 뒤로는 부드럽게 재생됩니다. 타임라인 눈금자에 표시됩니다: 빨강은 느린 구간, 노랑은 렌더링 중, 초록은 렌더링 완료입니다.",+ rendersHint: "뷰어가 제 속도로 재생하지 못하는 구간은 재생을 멈춘 뒤 백그라운드에서 렌더링되고, 그 뒤로는 부드럽게 재생됩니다.",},about: {group: '정보',diff --git a/packages/openfilm/studio/ui/src/i18n/zh-CN.ts b/packages/openfilm/studio/ui/src/i18n/zh-CN.tsindex 84bb9ea..91d590a 100644--- a/packages/openfilm/studio/ui/src/i18n/zh-CN.ts+++ b/packages/openfilm/studio/ui/src/i18n/zh-CN.ts@@ -1237,10 +1237,6 @@ export const zhCN: Words = {mediaReconnecting: '正在重新连接此片段…它会自动恢复。',resize: '调整时间轴大小',seek: '拖动播放头',- previewLate: '这里播放卡顿:停止播放后渲染',- previewMaking: '正在渲染以流畅播放… {p}%',- previewReady: '已渲染:这里能流畅播放',- previewFailed: '这一段无法渲染:按实时画面播放',split: '分割',subtitles: '字幕',subtitlesNone: '还没有字幕——影片有了人声后就会出现',@@ -1561,7 +1557,7 @@ export const zhCN: Words = {fitPages: "按查看器尺寸绘制网页",fitPagesHint: "网页里的 Canvas 和 3D 按查看器实际显示的尺寸绘制,看起来一样,播放更流畅。关闭后按影片完整尺寸绘制。导出始终按完整尺寸。",renders: "渲染播放卡顿的片段",- rendersHint: "查看器无法全速播放的片段,会在停止播放后于后台渲染,之后就能流畅播放。时间线标尺上会标出:红色是卡顿,黄色是正在渲染,绿色是已渲染。",+ rendersHint: "查看器无法全速播放的片段,会在停止播放后于后台渲染,之后就能流畅播放。",},about: {group: '关于',