Video preview thumbnails base vtt file.
- Load base vtt file
- Handle image
- Custom base image url
- Custom loading and error handler
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
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view the documentation.