Skip to content

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

Description

@yahaveran

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.
  • only in Androiid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions