Open tacianoscur opened 2 months ago
@tacianoscur I believe you missing a timestamp
const createdThumbnail = await createThumbnail({
url: video.url,
timeStamp: 0, // capture the thumbnail at the beginning of the video
});
I'm also facing this issue have you find any solution for this?
P.S: adding timestamp didn't resolved my problem
@LianVyv I have added many timestamps but same error every time.
Hello , i am facing same issue on IOS with mp4 file plus adding timestamp also did not resolve this.
So anyone with any solution?
@souvik-ghosh any idea when you pretend to tackle this?
FYI : in my case I'm not receiving Accept-Ranges in a header from the server, which is generally required for IOS. Because when tried with a different server in API It started working.
const createVideoThumbnail = () => { createThumbnail({ url: '', timeStamp:100, format:'png' }) .then(response => console.log({ response })) .catch(err => console.log({ err })); }
I have tried timeStamp:100. It worked for me !!
Describe the bug Getting this error when creating thumbnail for remote MP4 video on iOS, only happens for some videos:
To Reproduce Steps to reproduce the behavior:
Version
react native
0.72.11react-native-create-thumbnail
^2.0.0Expected Results Should create the thumbnail like with all the other videos.
Snack, code example, screenshot, or link to a repository