Looking for the old docs? Go here

Hooks

useThumbnails

This hook is used to fetch and resolve thumbnail images.

This hook fetches, parses, and resolves thumbnail images from a WebVTT file, JSON file, or Object. The hook will return the resolved data for each image such as the start time, end time, coordinates, dimensions, and url. It’s safe to call this hook in multiple places with the same src argument as work is de-duped and cached.

INFO

See the Loading Thumbnails guide for more information.

    
    

The hook will return the following data:

    
    

You can retrieve the active thumbnail by passing the data to the useActiveThumbnailHook with a desired time: