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 225 forks source link

“ 'unimplemented'Input contained an error.” or “setDataSource failed: status = 0x80000000” or “Missing Plugin Exception” #152

Open 3154365988 opened 9 months ago

3154365988 commented 9 months ago

关于报错Failed to create image decoder with message 'unimplemented'Input contained an error.或者RuntimeException: setDataSource failed: status = 0x80000000或者Missing Plugin Exception

尝试一下: Map<String, String> headers = <String, String>{}; headers["User-Agent"] = "Mozilla/5.0 (Linux; U; Android 4.4.2; zh-CN; MW-KW-001 Build/JRO03C) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/1.0.0.001 U4/0.8.0 Mobile Safari/533.1"; VideoThumbnail.thumbnailData(video: videoUrl,headers: headers);

加上headers 试试

fisforfaheem commented 7 months ago

─── Another exception was thrown: MissingPluginException(No implementation found for method data on channel plugins.justsoft.xyz/video_thumbnail) Another exception was thrown: MissingPluginException(No implementation found for method data on channel plugins.justsoft.xyz/video_thumbnail) I/flutter (31440): ┌──────────────────────

Threehair commented 6 months ago

I've been using video_thumbnail package for many months. It worked great. But recently I've been getting exactly the same errors you describe as I've migrated my app to the web. I struggled for a long time trying to debug my code... then I found this https://stackoverflow.com/a/77319039. In short, my recommendation: use get_thumbnail_video package instead. It's a fork. Just works. No problems. It seems the owner here has simply run out of time to maintain the package... Understandable. 👍