MCPcopy Index your code
hub / github.com/CapSoftware/Cap / importVideoFromPicker

Function importVideoFromPicker

apps/desktop/src/utils/importMedia.ts:58–71  ·  view source on GitHub ↗
(options?: ImportOptions)

Source from the content-addressed store, hash-verified

56};
57
58export const importVideoFromPicker = async (options?: ImportOptions) => {
59 const result = await dialog.open({
60 filters: [
61 {
62 name: "Video Files",
63 extensions: videoExtensions,
64 },
65 ],
66 multiple: false,
67 });
68 const path = selectedPath(result);
69 if (!path) return null;
70 return await importVideoPath(path, options);
71};
72
73export const importImageFromPicker = async (options?: ImportOptions) => {
74 const result = await dialog.open({

Callers 2

handleVideoImportFunction · 0.90
handleVideoImportFunction · 0.90

Calls 3

selectedPathFunction · 0.85
importVideoPathFunction · 0.85
openMethod · 0.45

Tested by

no test coverage detected