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.
The scaling functionality behaves similarly to Android's scales. However, I can update the algorithm to use cropping if both maxWidth and maxHeight are present to match the behavior of iOS.
closes #14
The scaling functionality behaves similarly to Android's scales. However, I can update the algorithm to use cropping if both
maxWidth
andmaxHeight
are present to match the behavior of iOS.Running example on the web:
https://user-images.githubusercontent.com/8436039/229614851-24258011-d3ca-4594-b236-d622c5c8b11a.mp4
I have tested it with
video_editor
package:https://user-images.githubusercontent.com/8436039/229935809-2f146b7e-fe0a-4b50-99bc-a78ee63266a0.mp4
I have updated the plugin to use an endorsed federated plugin. You can find more information on this at https://medium.com/flutter/how-to-write-a-flutter-web-plugin-part-2-afdddb69ece6
As for publishing, here are the steps:
pubspec.yaml
. (I will update the PR.)video_thumbnail_platform_interface
as a new package.video_thumbnail_web
as a new package.video_thumbnail
package.