androidvideothumbnailspreviewdata-scrubbing

How to display preview thumbnail while scrubbing the video.


I am trying to display the preview thumbnail when user move his finger over video scrubber.

The only solution I m finding is to extract thumbnails using some 3rd party tool and save it to server or pass it to app via some JSON.

What I m trying to do is something similar to JwPlayer (http://jwplayer.electroteque.org/controls-preview)

Any idea where to start?

Or is here any standard protocol that support manual generated thumbnails? Or i need to go with my own feed format.


Solution

  • This is now standard in players that support preview thumbnails (for scrubbing) in VTT files.

    A great player that does this is plyr (plyr.io).

    See instructions here: https://github.com/sampotts/plyr#preview-thumbnails

    If you want to generate them automatically, there's an NPM for that: https://www.npmjs.com/package/sprite-vtt-generator