Create video thumbnail based on a video link in React Native

132 Views Asked by At

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 }));
          }

0

There are 0 best solutions below