UNPKG

react-native-video-processing

Version:
40 lines (31 loc) 935 B
// @flow export type sourceType = string | { uri: string }; export type trimOptions = { startTime: number, endTime: number }; // TODO export type previewMaxSize = { width: number, height: number }; export type format = 'base64' | 'JPEG'; export type cropOptions = { cropOffsetX: number, cropOffsetY: number, cropWidth: number, cropHeight: number, startTime: ?String, endTime: ?String, // TODO: COMPRESS IN CROP // quality: ?trimQuality }; declare class RNTrimmerManager { static trim(source: string, options: trimOptions): Promise<{ source: string }>; static compress(source: string, options: any): Promise<*>; static getVideoInfo(source: string): Promise<*>; static getPreviewImages(source: string): Promise<*>; static getPreviewImageAtPosition(source: string, second: number): Promise<{ image: string }>; static crop(source: string, options: cropOptions): Promise<{ source: string }>; }