Skip to content

Youtube component: Handle videos with no maxresdefault thumbnail #5525

@gursuj

Description

@gursuj

Hello. If I enable Show Preview when using the Youtube component, seems it uses the maxresdefault thumbnail. Some videos like this don't have thumbnails of that size, which results in the alt text being shown. You can check available thumbnail sizes at https://youtube-thumbnail-grabber.com/. Thought this was a bug at first, so not the most intuitive UX.

When trying to use that video, I checked the console logs and found the url below being logged. I'm guessing this is requesting the image and optimizing it?
https://p-979a0e26-f928-4add-8537-21a7a2e03d35.apps.webstudio.is/cgi/image/https%3A//img.youtube.com/vi/KLUwbR6S73s/maxresdefault.jpg?width=1080&quality=80&format=auto

In such cases, maybe WebStudio should try using other thumbnail sizes that don't return a 404 (sddefault.jpg is the next highest resolution), or show the user some info about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions