You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
关于报错Failed to create image decoder with message 'unimplemented'Input contained an error.或者RuntimeException: setDataSource failed: status = 0x80000000或者Missing Plugin Exception
───
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): ┌──────────────────────
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. 👍
关于报错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 试试
The text was updated successfully, but these errors were encountered: