react-native-fast-video-merge

1.0.1 • Public • Published

VideoMerge Component

This package provides a VideoMerge component and utility functions to process and merge videos using FFmpeg in React Native.

Importing the Functions

You can use the processAndMergeVideos and mergeVideos functions directly in your own components:

Example Usage

import React, { useState } from 'react';
import { Button } from 'react-native';
import { processAndMergeVideos } from 'react-native-fast-video-merge';

const MyComponent = () => {
  const [recordedVideos, setRecordedVideos] = useState<string[]>([]);

  const handleMergeVideos = async () => {
    const mergedVideoUri = await processAndMergeVideos(recordedVideos);
    console.log('Merged video saved at:', mergedVideoUri);
  };

  return <Button title="Merge Videos" onPress={handleMergeVideos} />;
};

export default MyComponent;

Package Sidebar

Install

npm i react-native-fast-video-merge

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

3.14 kB

Total Files

5

Last publish

Collaborators

  • muhammanahmad