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