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
Generate thumbnail fail on android 10 if android:requestLegacyExternalStorage="false" #75
I an using video_thumbnail to generate video thumbnail.
I found i generate thumbnail fail on android 10 (Google Pixel 3a XL)
I/flutter (18037): D/[ 7 ms](package:ycvbeauty/pages/widgets/video_thumbnails.dart:143:17) VideoThumbs: error (10): reason(MissingPluginException(No implementation found for method data on channel video_thumbnail))
D/ThumbnailPlugin(18037): buildThumbnailData( format:0, maxh:0, maxw:128, timeMs:9999, quality:25 )
W/System.err(18037): java.lang.IllegalArgumentException
W/System.err(18037): at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:77)
W/System.err(18037): at xyz.justsoft.video_thumbnail.VideoThumbnailPlugin.createVideoThumbnail(VideoThumbnailPlugin.java:201)
W/System.err(18037): at xyz.justsoft.video_thumbnail.VideoThumbnailPlugin.buildThumbnailData(VideoThumbnailPlugin.java:116)
W/System.err(18037): at xyz.justsoft.video_thumbnail.VideoThumbnailPlugin.access$100(VideoThumbnailPlugin.java:37)
W/System.err(18037): at xyz.justsoft.video_thumbnail.VideoThumbnailPlugin$1.run(VideoThumbnailPlugin.java:77)
W/System.err(18037): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(18037): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(18037): at java.lang.Thread.run(Thread.java:919)
It work fine if I add android:requestLegacyExternalStorage="true"
Android 11 no this issue
I an using video_thumbnail to generate video thumbnail. I found i generate thumbnail fail on android 10 (Google Pixel 3a XL)
It work fine if I add android:requestLegacyExternalStorage="true" Android 11 no this issue