video_preview_thumbnails 0.0.4 video_preview_thumbnails: ^0.0.4 copied to clipboard
Generate Video preview thumbnails using VTT files for enhanced video navigation and user experience
Video Preview Thumbnails #
Video preview thumbnails base vtt file.
Features #
- Load base vtt file
- Handle image
- Custom base image url
- Custom loading and error handler
Example App #
Usage #
Quick simple usage example:
VideoPreviewThumbnailsController controller = VideoPreviewThumbnailsController();
Uint8List vttFile=...;
...
VideoPreviewThumbnails(
vtt: vttFile,
controller: controller,
)
...
controller.setCurrentTime(1500);
Sample vtt file support:
WEBVTT
00:00:00.000 --> 00:00:01.000
https://example.com/media/coffee16.jpg#xywh=0,0,160,90
00:00:01.000 --> 00:00:02.000
https://example.com/media/coffee16.jpg#xywh=0,90,160,90
00:00:02.000 --> 00:00:03.000
https://example.com/media/coffee16.jpg#xywh=0,180,160,90
Getting Started #
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view the documentation.