Retrieve the video duration on iOS and Android platforms by specifying the file path.
npm install react-native-video-duration
import { getVideoDuration } from 'react-native-video-duration';
// ...
const result = await getVideoDuration("Video URL path");
// Return video duration in "seconds"
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library