Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Editor: say so when a split, trim or full screen is refused

Bowen Xue93dafc4f018b
diff --git a/web/editor_select.js b/web/editor_select.js
index 684ebbb..764d0a2 100644
--- a/web/editor_select.js
+++ b/web/editor_select.js
@@ -85,6 +85,7 @@ export function createSelectionActions({state, t = en => en, actions = {}, clipb
const ids = selectedIds(state.record, state.selection);
if (key === 'a') { state.select(selection(unlockedIds(state.record))); return {ok: true}; }
if (['b', 'q', 'w'].includes(key) && !playheadIds(state.record, state.selection, state.playhead).length) {
+ actions.notify?.(t('Select a clip and move the playhead onto it.', '先选中片段,再把播放头移到片段上。'));
return {ok: false, reason: 'playhead'};
}
if (key === 'b') { state.apply(t('Split', '剪开'), record => actionsModel.splitAt(record, ids, state.playhead)); return {ok: true}; }
diff --git a/web/editor_transport.js b/web/editor_transport.js
index a3c5ee8..85b1c78 100644
--- a/web/editor_transport.js
+++ b/web/editor_transport.js
@@ -183,7 +183,7 @@ export function createEditorTransport({element, preview, transport, toolbar, edi
try {
if (document.fullscreenElement === fullHost) await document.exitFullscreen();
else { sheet.hidden = true; await fullHost.requestFullscreen(); }
- } catch { return {ok: false, reason: 'fullscreen'}; }
+ } catch { notify?.(t('Full screen is not available here.', '这里不能全屏。')); return {ok: false, reason: 'fullscreen'}; }
refresh();
}
const handlers = {