feat: ui improvement, working audio preview

This commit is contained in:
鲁树人
2023-05-14 23:47:56 +01:00
parent 8ab267019c
commit b99590908e
4 changed files with 119 additions and 63 deletions

View File

@@ -27,6 +27,7 @@ export interface AudioMetadata {
export interface DecryptedAudioFile {
fileName: string;
raw: string; // blob uri
ext: string;
decrypted: string; // blob uri
state: ProcessState;
errorMessage: null | string;
@@ -65,6 +66,7 @@ export const fileListingSlice = createSlice({
fileName: payload.fileName,
raw: payload.blobURI,
decrypted: '',
ext: '',
state: ProcessState.UNTOUCHED,
errorMessage: null,
metadata: {
@@ -91,6 +93,7 @@ export const fileListingSlice = createSlice({
file.state = ProcessState.COMPLETE;
file.decrypted = action.payload.decrypted;
file.ext = action.payload.ext;
// TODO: populate file metadata
});