react-native-video-thumbnail-too
v0.1.16
Published
extracts a png thumbnail from a video
Downloads
4
Readme
react-native-video-thumbnail-too
extracts a png OR jpg thumbnail from a video
Installation
yarn add react-native-video-thumbnail-too
npx react-native link react-native-video-thumbnail-too
IOS
cd ios && pod install
Android
# already done
Usage
import { extractThumbnail } from "react-native-video-thumbnail-too";
const { uri, width, height } = await extractThumbnail({
pathToVideoFile, // required
timeInMilliseconds, // optional, default: 0
imageType, // optional, default: 'jpg', can be 'jpg' or 'png'
quality // optional, default: 100, only applies to 'jpg'
});
Need anything custom?
https://www.jasonsebring.com/contact
Tip Jar
https://www.jasonsebring.com/pay
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT