mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Dont need old ffmpeg types
This commit is contained in:
@@ -1,33 +1 @@
|
||||
export type IFFmpegInstance = {
|
||||
FS: (
|
||||
command: string,
|
||||
fileName: string,
|
||||
fileData?: Buffer
|
||||
) => Uint8Array | void;
|
||||
exit: () => void;
|
||||
load: () => Promise<void>;
|
||||
run: (...commandArgs: string[]) => Promise<void>;
|
||||
};
|
||||
|
||||
export type IFFmpegLog = {
|
||||
message: string;
|
||||
type: string;
|
||||
};
|
||||
|
||||
type FFmpegConfig = {
|
||||
corePath: string;
|
||||
log: boolean;
|
||||
logger: (log: IFFmpegLog) => void;
|
||||
mainName: string;
|
||||
};
|
||||
|
||||
export type FFmpegTranscodeFile = [string, Buffer];
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
FFmpeg: {
|
||||
createFFmpeg: (config: FFmpegConfig) => IFFmpegInstance;
|
||||
};
|
||||
FFmpegInstance: IFFmpegInstance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user