Skip to content

Commit

Permalink
youtube-thumbnail-urls - link up my demo pages
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish authored Oct 13, 2024
1 parent 023a7eb commit 73ab670
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion youtube-thumbnail-urls.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,16 @@ I tested across some old and new videos and here's the best image they had avail
"hqdefault.jpg (480px)" : 89,
```

My test page (with a smaller set of test videos): https://paulirish.github.io/lite-youtube-embed/testpage/poster-image-summary.html

I found no cases where it a smaller size was not available. For example, if they have the maxresdefault webp, then they definitely have the sddefault webp.

All this means, it'd be very reasonable and efficient to try first for the `maxresdefault.webp`. If it isn't available (see annoying 404 behavior above), then fall back to `hqdefault.jpg`.

In lite-youtube-embed's case though, we'll default to trying the `sddefault.webp` first, as that resolution is plenty for our uses.
In lite-youtube-embed's case though, we'll default to trying the `sddefault.webp` first, as that resolution is plenty for our uses.

## The best poster image for your video

See https://paulirish.github.io/lite-youtube-embed/testpage/poster-image-availability.html


0 comments on commit 73ab670

Please sign in to comment.