souvik-ghosh / react-native-create-thumbnail

iOS/Android thumbnail generator with support for both local and remote videos
MIT License
246 stars 105 forks source link

Thumbnail not generating from the storage/emulated folder #66

Closed demedos closed 8 months ago

demedos commented 2 years ago

Describe the bug I'm using react-native-image-crop-picker to take a video; the path is passed to the createThumbnail function, but even through I get a response, it looks like the file hasn't been created. I'm testing on a Huawei P40 lite 5G, and it happens both on the development and release apk builds. My coworkers told me that the aab from the play store works correctly on other devices, so it may be affecting Huawei devices only.

To Reproduce Happens in any apk build, both in release and development mode on Huawei devices

Version react-native-create-thumbnail version 1.5.1 react-native: 0.67.4

Expected Results The thumbnail is generated

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

const path = "file:///storage/emulated/0/Android/data/com.example/files/Pictures/video-9f84865d-f2a7-498c-8682-cf1cdac081597870956076344084936.mp4"
RNFS.exists(path) -> true

const newPath = "file:///data/user/0/com.example/cache/thumbnails/thumb-61cc418f-c84d-4d78-8c98-b8bc148bad38"
RNFS.exists(newPath) -> false
siddharth-kt commented 2 years ago

@demedos did you got any solution to this. I think this issue occurs only on high definition video. See : https://github.com/souvik-ghosh/react-native-create-thumbnail/issues/47#issuecomment-908838277

demedos commented 2 years ago

Nope, no solution. Huawei devices are still affected by this bug

souvik-ghosh commented 8 months ago

closing due to inactivity