Module cross platform to merge multiple videos.
This tool based on react-native-video-editor
, with working example, support to newer React Native versions, and more improvements.
yarn add react-native-video-manager
or
npm install react-native-video-manager
You then need to link the native parts of the library for the platforms you are using.
- iOS Platform:
$ npx pod-install
- Android Platform:
no additional steps required
import { VideoManager } from "react-native-video-manager";
// ...
const videos = ["file:///video1.mp4", "file:///video2.mp4"];
try {
const { uri } = await VideoManager.merge(videos);
console.log("merged video path", uri);
} catch (error) {
console.log(error);
}
// ...
You can also check a complete example in /example
folder.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT