Skip to content

Repository files navigation

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

About

React native package for Video compression using LightCompressor library.

Topics

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages