justsoft / video_thumbnail

This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
MIT License
183 stars 238 forks source link

error: unreported exception IOException; must be caught or declared to be thrown retriever.release(); #111

Closed itEstimators closed 2 years ago

hadi20sa commented 2 years ago

I am getting the same error

nkesarwani7 commented 2 years ago

same error:

/Users/mac/.pub-cache/hosted/pub.dartlang.org/video_thumbnail-0.5.0/android/src/main/java/xyz/justsoft/video_thumbnail/VideoThumbnailPlugin.java:253: error: unreported exception IOException; must be caught or declared to be thrown retriever.release()

AnasSafi commented 2 years ago

same error on flutter v3.0.4

loic-hamdi commented 2 years ago

same here, anyone found a solution or workaround?

justsoft commented 2 years ago

I will publish a new version soon, please try that. Also as I commented on an other issue, please take care the URL and the file full path of the writing file. Make sure the full path is valid for iOS/Android and the App has sufficient permissions to create, read and write on it.

c0c4i commented 2 years ago

I tried this new version 0.5.2 but I still have this problem running my app on android. Here is my error on debug console.

/development/flutter/.pub-cache/hosted/pub.dartlang.org/video_thumbnail-0.5.2/android/src/main/java/xyz/justsoft/video_thumbnail/VideoThumbnailPlugin.java:253: error: unreported exception IOException; must be caught or declared to be thrown retriever.release();
NiuXiaoGuang commented 2 years ago

Flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_thumbnail-0.5.2/android/src/main/java/xyz/justsoft/video_thumbnail/VideoThumbnailPlugin.java:253: 错误: 未报告的异常错误java.io.IOException; 必须对其进行捕获或声明以便抛出 retriever.release();

问题还是存在