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
Missing plug in error happens and then goes away #159
When creating a thumbnail I get "MissingPluginException(No implementation found for method data on channel plugins.justsoft.xyz/video_thumbnail)" initially (current test case is on about 20 files done in a series
When navigating back to the page, the same code executes fine later
The code is:
try { uint8list2 = await video_thumbnail.VideoThumbnail.thumbnailData( video: '$documentsDirectory/files/$file_name', imageFormat: video_thumbnail.ImageFormat.JPEG, maxWidth: 200, // specify the width of the thumbnail, let the height auto-scaled to keep the source aspect ratio quality: 25, ); } catch (e) { logger.d('thumbnail for $file_name error'); logger.e(e); }
The error seems to take about 45 seconds to happen, it is not instantaneous and again, once it stops it does not seem to reoccur. My theory is that it is some form of initialization, but I have no idea how to test/detect or wait for it.
Testing on Galaxy S8 with Android version 9
When creating a thumbnail I get "MissingPluginException(No implementation found for method data on channel plugins.justsoft.xyz/video_thumbnail)" initially (current test case is on about 20 files done in a series
When navigating back to the page, the same code executes fine later
The code is:
try { uint8list2 = await video_thumbnail.VideoThumbnail.thumbnailData( video: '$documentsDirectory/files/$file_name', imageFormat: video_thumbnail.ImageFormat.JPEG, maxWidth: 200, // specify the width of the thumbnail, let the height auto-scaled to keep the source aspect ratio quality: 25, ); } catch (e) { logger.d('thumbnail for $file_name error'); logger.e(e); }
The error seems to take about 45 seconds to happen, it is not instantaneous and again, once it stops it does not seem to reoccur. My theory is that it is some form of initialization, but I have no idea how to test/detect or wait for it.