I am looking for a way to create video thumbnail based on a video being played from a link, previously I was using react-native-create-thumbnail but it not working with Android sdk 33.
This is how it should work:
import { createThumbnail } from "react-native-create-thumbnail";
if (item.fileType === "video") {
createThumbnail({
url: item.links![4].url,
})
.then((response) => {
if (!thumbnail) {
setThumbnail(response.path);
}
})
.catch((err) => console.warn({ err }));
}