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

After failing to create a thumbnail for a broken video URL on Android, the library stops generating thumbnails, even for valid video URLs. #105

Open yahaveran opened 8 months ago

yahaveran commented 8 months ago

Describe the bug I am encountering an issue with the react-native-create-thumbnail library on Android. I have a list of video URLs, and the problem arises when running the createThumbnail function. Specifically, after encountering an invalid (broken) video URL, subsequent attempts to create thumbnails for valid URLs fail until the app is restarted.

To Reproduce

  1. Iterate over a list of, for example, three valid video URLs using createThumbnail.
  2. Then, iterate over one or more invalid video URLs using the same function.
  3. Attempt to run createThumbnail again on a valid video URL.

Version react-native-create-thumbnail version 1.6.4

Expected Results I expect the library to successfully create thumbnails for valid video URLs. After encountering an invalid URL, the function should gracefully handle the error and not affect the functionality when attempting to create thumbnails for subsequent valid URLs.

Actual Results After encountering an invalid URL, the createThumbnail function returns false as expected. However, subsequent attempts to create thumbnails for valid URLs do not work until the app is closed and reopened.

Additional Information Platform: Android React Native version 0.72.1

iamsreeragkp commented 2 months ago

Hi , Im also experiencing the same issue , is there any solution for this . Thanks