fix editor media caption and audio workflows (#11)
Co-authored-by: haixin.yang <haixin.yang@weimob.com>
This commit is contained in:
1 parent
184f57c63d
commit
42ea7685e4
11 files changed
+247
-65
No files matched your search
@@ -1,13 +1,8 @@
|
||||
import { createCaptionSegments, getCaptionScript } from "./timeline.js";
|
||||
import { getCaptionScript } from "./timeline.js";
|
||||
|
||||
export function createCaptionEditingActions(d) {
|
||||
function updateScript(nextScript) {
|
||||
d.setScript(nextScript);
|
||||
if (!d.audioSegments.length) {
|
||||
const nextSegments = createCaptionSegments(nextScript);
|
||||
d.setCaptionSegments(nextSegments);
|
||||
d.setSelectedSegmentId(nextSegments[0]?.id ?? "");
|
||||
}
|
||||
}
|
||||
|
||||
function updateCaptionSegmentText(segmentId, text) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import ffmpegCoreURL from "@ffmpeg/core?url";
|
||||
import ffmpegCoreWasmURL from "@ffmpeg/core/wasm?url";
|
||||
import ffmpegClassWorkerURL from "@ffmpeg/ffmpeg/worker?url";
|
||||
import ffmpegClassWorkerURL from "@ffmpeg/ffmpeg/worker?worker&url";
|
||||
|
||||
import { AUDIO_RECORDING_FORMATS, EXPORT_RECORDING_FORMATS } from "../config/editor.js";
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user