An open API service indexing awesome lists of open source software.

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.

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