v_thumbnail 0.1.1
v_thumbnail: ^0.1.1 copied to clipboard
Generate thumbnail from video
Changelog #
All notable changes to this project will be documented in this file.
0.1.0 - 2026-08-23 #
Fixed #
- Native work (Android
MediaMetadataRetriever, iOSAVAssetImageGenerator) now runs on a background thread/queue instead of the platform thread, so thumbnail generation no longer blocks the UI. - Android no longer force-unwraps a possibly-null decoded frame; a failed extraction now
returns a proper
THUMBNAIL_ERRORinstead of crashing. - Thumbnails are written to the OS-managed cache directory (
cacheDir/.cachesDirectory) instead of a raw temp file, so they get cleaned up automatically under storage pressure.
Added #
generateMultipleThumbnailsis now actually implemented on Android and iOS (previously unimplemented on both platforms and would returnnotImplemented). Frames are spread evenly across the video duration, reusing a single retriever/generator instance per call.
Changed #
- Android decodes frames at the target size via
getScaledFrameAtTime(API 27+, falls back to decode-then-scale on older devices) instead of always decoding at full resolution. - Android plugin package changed from the placeholder
com.example.v_thumbnailtocom.performance2024.vthumbnail.