MCPcopy Create free account
hub / github.com/CapSoftware/Cap / importVideoPath

Function importVideoPath

apps/desktop/src/utils/importMedia.ts:38–46  ·  view source on GitHub ↗
(
	sourcePath: string,
	options?: ImportOptions,
)

Source from the content-addressed store, hash-verified

36};
37
38export const importVideoPath = async (
39 sourcePath: string,
40 options?: ImportOptions,
41) => {
42 const projectPath = await commands.startVideoImport(sourcePath);
43 await commands.showWindow({ Editor: { project_path: projectPath } });
44 await maybeHideCurrentWindow(options);
45 return projectPath;
46};
47
48export const importImagePath = async (
49 sourcePath: string,

Callers 1

importVideoFromPickerFunction · 0.85

Calls 1

maybeHideCurrentWindowFunction · 0.85

Tested by

no test coverage detected