react-native-create-thumbnail icon indicating copy to clipboard operation
react-native-create-thumbnail copied to clipboard

[Android] Error: File doesn't exist or not supported

Open tacianoscur opened this issue 1 year ago • 2 comments
trafficstars

Describe the bug Getting this error Error: File doesn't exist or not supported with an MP4 video from remote url, it only happens on android 13 to be specific and only happens to some videos, works fine on iOS with the same video.

Device: Galaxy Nexus API 33

To Reproduce Steps to reproduce the behavior:

  1. Call createThumbnail with a remote url for an mp4 video on the device mentioned (I can send you the url if needed)

Version react native 0.72.11 react-native-create-thumbnail ^2.0.0

Expected Results Should create the thumbnail like with all the other videos.

Snack, code example, screenshot, or link to a repository

import { createThumbnail } from 'react-native-create-thumbnail';
const createdThumbnail = await createThumbnail({
      url: video.url,
});

tacianoscur avatar Aug 07 '24 21:08 tacianoscur

Same error here. Any solution?

Tonisg91 avatar Feb 05 '25 15:02 Tonisg91

update to 2.1.1 and add

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

to AndroidManifest.xml

RadosavAntonio avatar Apr 17 '25 10:04 RadosavAntonio

It doesn't help @RadosavAntonio. Also, this crash happens for some video files only.

rohit9625 avatar Jul 29 '25 14:07 rohit9625