extracts a png OR jpg thumbnail from a video
yarn add react-native-video-thumbnail-too
npx react-native link react-native-video-thumbnail-too
cd ios && pod install
# already done
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'
});
https://www.jasonsebring.com/contact
https://www.jasonsebring.com/pay
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT