player icon indicating copy to clipboard operation
player copied to clipboard

Thumbnails: Preload the "next" spread so there is no "flickr" when transitioning

Open chrisspiegl opened this issue 7 months ago • 0 comments

When using multiple spreads for the thumbnail seek images, it would be great if the next spread image could be preloaded so that there is no flicker in the thumbnail scrub when the spread image is replaced (ideally loaded already, replaced in the background).

I am not talking about "preloading all image spreads" but just focusing on having at least "the next one" already available.

The system we built is based on Bunny.net and they split the images into 36 thumbnails per JPG (example implementation, see my comment here https://github.com/vidstack/player/issues/1271#issuecomment-2973317536).

Example recording of what I mean with the flicker (note the black thumbnail flicker when scrubbing):

https://github.com/user-attachments/assets/526b2567-beb0-4632-ad83-bc7a5717ccd4

chrisspiegl avatar Jun 15 '25 00:06 chrisspiegl