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
Update Documentation - Create Thumbnail From Root Assets #72
Add documentation on how to create a thumbnail from video assets declared in pubspec.yaml.
When using VideoThumbnail.thumbnailData or VideoThumbnail.thumbnailFile to create a thumbnail of the video located in root assets directly will throw _MissingPluginException(No implementation found for method file on channel videothumbnail). Even though the video is playable and already declared in pubspec.yaml.
So to handle video located in root assets, we load and create a temporary File, then provide the path to VideoThumbnail.thumbnailFile.
Add documentation on how to create a thumbnail from video assets declared in pubspec.yaml.
When using VideoThumbnail.thumbnailData or VideoThumbnail.thumbnailFile to create a thumbnail of the video located in root assets directly will throw _MissingPluginException(No implementation found for method file on channel videothumbnail). Even though the video is playable and already declared in pubspec.yaml.
So to handle video located in root assets, we load and create a temporary File, then provide the path to VideoThumbnail.thumbnailFile.