Comments (7)
Fork and clone the project. Go to the android/src/main/java/com/createthumbnail/CreateThumbnailModule.hava file.
Go to line 191 and replace the code
Bitmap image = retriever.getFrameAtTime(time * 1000, MediaMetadataRetriever.OPTION_CLOSEST_SYNC);
retriever.release();
if (image == null) {
throw new IllegalStateException("File doesn't exist or not supported");
}
return image;
to this
Bitmap image = retriever.getFrameAtTime(time * 1000, MediaMetadataRetriever.OPTION_CLOSEST_SYNC);
try {
retriever.release();
} catch (Exception e) { // Catching Exception class as it's unclear what specific exception you're facing
// Handle or log the exception here
e.printStackTrace();
}
if (image == null) {
throw new IllegalStateException("File doesn't exist or not supported");
}
return image;
from react-native-create-thumbnail.
Same thing:
Task :react-native-create-thumbnail:compileDebugJavaWithJavac FAILED
After upgrading to 33 its not building.
from react-native-create-thumbnail.
Opened a PR #100 with a fix
Relates to #96
from react-native-create-thumbnail.
Same issue.
Using React Native 0.70.6
Tried the previous stable version and now 2.0.0-rc.2
I managed to return to 31 and it worked fine. but other libraries require 33.
So If no solution is available, I need to find another library that works. :-(
from react-native-create-thumbnail.
Hello,
From Aug 31 API 33 is the minimum supported for sending updates to the Play Store.
I am having the same issue using the last version of react-native-create-thumbnail.
React Native: 0.71.6
from react-native-create-thumbnail.
Using the version 2.0.0-rc.2
. Problem still persists.
from react-native-create-thumbnail.
duplicate of #76. fixed in the latest version
from react-native-create-thumbnail.
Related Issues (20)
- Can I create Youtube or Instagram video thumbnail? HOT 1
- Unable to create an instance of com.android.repository.impl.generated.v2.TypeDetails HOT 1
- After failing to create a thumbnail for a broken video URL on Android, the library stops generating thumbnails, even for valid video URLs.
- Can create m3u8 file's thumbnail? HOT 1
- Could not find com.facebook.react:react-native:0.73.5 Required by: project :react-native-create-thumbnail HOT 1
- react-native android build error HOT 23
- timeStamp not working HOT 3
- No virtual method get exceptionhandler Unable to create thumnail in android HOT 6
- tough compilation error HOT 4
- Hotfix CreateThumbnailModule.java:192 HOT 1
- [IOS] AVFoundationerrordomain code=-11800 HOT 1
- > Task :react-native-create-thumbnail:compileDebugJavaWithJavac FAILED HOT 7
- 'constructor MediaRecorder()' is deprecated. Deprecated in Java HOT 2
- [Error: File doesn't exist or not supported] on thumbnailCreate for .mov files on Android, Pixel 6 HOT 4
- Package name 'com.reactlibrary.createthumbnail' does not correspond to the file path 'com.createthumbnail' HOT 2
- Please update BuildTools HOT 1
- Improve thumbnail image quality HOT 1
- Unreported exception error IOException; it must be caught or declared to be thrown. "retriever.release()" HOT 7
- android build error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-create-thumbnail.