react-native-compressor-forked
Version:
This library compress image, video and audio
20 lines (19 loc) • 998 B
TypeScript
import Video, { VideoCompressorType, backgroundUpload } from './Video';
import Audio from './Audio';
import Image from './Image';
import { getDetails, uuidv4, generateFilePath, getRealPath, getVideoMetaData } from './utils';
export { Video, Audio, Image, backgroundUpload, VideoCompressorType, getDetails, uuidv4, generateFilePath, getRealPath, getVideoMetaData, };
declare const _default: {
Video: VideoCompressorType;
Audio: import("./utils").AudioType;
Image: {
compress(value: string, options?: import("./Image").CompressorOptions | undefined): Promise<string>;
};
backgroundUpload: (url: string, fileUrl: string, options: import("./Video").FileSystemUploadOptions, onProgress?: ((writtem: number, total: number) => void) | undefined) => Promise<any>;
getDetails: (mediaFullPath: string, extesnion?: "mp3" | "mp4") => Promise<any>;
uuidv4: () => string;
generateFilePath: any;
getRealPath: any;
getVideoMetaData: any;
};
export default _default;