https://github.com/saggiyogesh/react-native-lightcompressor
React native package for Video compression using LightCompressor library.
https://github.com/saggiyogesh/react-native-lightcompressor
compression compressor lightcompressor react-native video whatsapp
Last synced: 3 months ago
JSON representation
React native package for Video compression using LightCompressor library.
- Host: GitHub
- URL: https://github.com/saggiyogesh/react-native-lightcompressor
- Owner: saggiyogesh
- License: mit
- Created: 2021-11-09T20:16:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-26T07:21:09.000Z (over 3 years ago)
- Last Synced: 2025-09-04T18:38:37.750Z (4 months ago)
- Topics: compression, compressor, lightcompressor, react-native, video, whatsapp
- Language: Java
- Homepage:
- Size: 391 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-lightcompressor
video compressor
## Installation
```sh
yarn add react-native-lightcompressor
```
```sh
npm install react-native-lightcompressor
```
## Usage
```js
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](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT