Feat: may download files(recording/audio/video/speech) (#431)

* may download recording

* may download recording/audio/video/speech
This commit is contained in:
an-lee
2024-03-22 08:44:48 +08:00
committed by GitHub
parent 7474225b14
commit 8fc8905afc
13 changed files with 128 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ type AudioType = {
id: string;
source: string;
name: string;
filename: string;
description?: string;
src?: string;
coverUrl?: string;

View File

@@ -76,7 +76,7 @@ type EnjoyAppType = {
) => Promise<string[] | undefined>;
showSaveDialog: (
options: Electron.SaveDialogOptions
) => Promise<Electron.SaveDialogReturnValue>;
) => Promise<string | undefined>;
showMessageBox: (
options: Electron.MessageBoxOptions
) => Promise<Electron.MessageBoxReturnValue>;
@@ -244,7 +244,7 @@ type EnjoyAppType = {
};
download: {
onState: (callback: (event, state) => void) => void;
start: (url: string, savePath?: string) => void;
start: (url: string, savePath?: string) => Promise<string | undefined>;
cancel: (filename: string) => Promise<void>;
cancelAll: () => void;
dashboard: () => Promise<DownloadStateType[]>;

View File

@@ -3,6 +3,7 @@ type VideoType = {
id: string;
source: string;
name: string;
filename: string;
description?: string;
filename?: string;
coverUrl?: string;