Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 635 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 635 Bytes

react-native-lightcompressor

video compressor

Installation

yarn add react-native-lightcompressor
npm install react-native-lightcompressor

Usage

import { compress, VideoQuality, cancel } from 'react-native-lightcompressor';

// ...

const r = await compress({
  uri: 'file://path_of_file/video.mp4',
  quality: VideoQuality.MEDIUM,
  onProgress: (p: number) => console.log('progress--> ', p),
  onStart: () => console.log('start'),
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT