rubyvideo icon indicating copy to clipboard operation
rubyvideo copied to clipboard

Fallback for YouTube XL thumbnails

Open marcoroth opened this issue 1 year ago • 1 comments

Some videos on YouTube don't have the XL thumbnail, which then leads to us rendering the generic YouTube thumbnail. I think it would be better if we could render the event fallback thumbnail instead.

Though, I'm not sure how we'd be able to detect that. Maybe with an API request?

For example:

CleanShot 2024-12-10 at 01 33 13

https://www.rubyvideo.dev/events/rubyconf-au-2024 https://www.rubyvideo.dev/talks/data-unleashed-a-developer-s-perspective-on-navigating-the-architecture-maze https://www.rubyvideo.dev/talks/mapping-concepts-into-code

marcoroth avatar Dec 10 '24 00:12 marcoroth

I made a quick test with onerror=this.remove() but it doesn't trigger an error. Looking at the network in dev tool, the fallback image is returned with a 404 status not sure how to detect that.

adrienpoly avatar Dec 10 '24 07:12 adrienpoly