diff --git a/movie_editor/frontend/api.js b/movie_editor/frontend/api.js index 06f687c4..5e9bc797 100644 --- a/movie_editor/frontend/api.js +++ b/movie_editor/frontend/api.js @@ -130,13 +130,8 @@ gitCheckout: (branch) => j("POST", API("/git/checkout"), { branch }), // generate (a single scene, or an explicit run of scene ids = one chain request) - generate: (id, onlyScene, sceneIds, resetSession, timelineSnapshot) => - j("POST", API(`/projects/${id}/generate`), { - only_scene: onlyScene || null, - scene_ids: sceneIds || null, - reset_session: !!resetSession, - timeline_snapshot: timelineSnapshot || null, - }), + generate: (id, onlyScene, sceneIds, resetSession) => + j("POST", API(`/projects/${id}/generate`), { only_scene: onlyScene || null, scene_ids: sceneIds || null, reset_session: !!resetSession }), status: (id, promptId) => j("GET", API(`/projects/${id}/status/${promptId}`)), progress: () => j("GET", API("/progress")), livePreview: () => j("GET", API("/live-preview")), @@ -161,7 +156,6 @@ type: m.type || "output", render_in: String(spec.renderIn != null ? spec.renderIn : 0), }); - if (spec.cacheBust != null) q.set("v", String(spec.cacheBust)); u += "?" + q.toString(); } return u; diff --git a/movie_editor/frontend/player.js b/movie_editor/frontend/player.js index d89eb72e..80e4fdcd 100644 --- a/movie_editor/frontend/player.js +++ b/movie_editor/frontend/player.js @@ -158,8 +158,7 @@ const sc = S.scene(c.sceneId); const sourceIn = sc?.source_in || 0; const renderIn = Math.max(0, (c.inSec || 0) - sourceIn); - const cacheBust = (st && st._previewGenToken) || Date.now(); - c.streamUrl = API.previewSegmentUrl(pid, c.sceneId, { media: c.media, renderIn, cacheBust }); + c.streamUrl = API.previewSegmentUrl(pid, c.sceneId, { media: c.media, renderIn }); } } } @@ -922,8 +921,6 @@ } if (g.livePreviewUrl) { _ensureLivePreviewDom(); - const canvas = document.querySelector(".pm-canvas"); - if (canvas && !canvas.classList.contains("gen-live-preview")) canvas.classList.add("gen-live-preview"); if (_livePreviewLayerEl) _livePreviewLayerEl.style.display = ""; if (_livePreviewEl && _livePreviewEl.src !== g.livePreviewUrl) _livePreviewEl.src = g.livePreviewUrl; if (_livePreviewEl) _livePreviewEl.style.display = ""; @@ -1098,9 +1095,6 @@ // Rebuilding the monitor DOM during playback detaches