Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.33 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.33 KB

logo

Video Preview Thumbnails

pub package
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.