Skip to content

YouTube placeholder cannot show some videos #234

Closed
@serkodev

Description

@serkodev

🐛 The bug

The current youtube placeholder url https://i.ytimg.com/vi_webp/${props.videoId}/sddefault.webp cannot show some videos.

vi_webp is not guaranteed to exist

https://i.ytimg.com/vi_webp/mJ8tq8AnNis/default.webp (video)

sddefault is not guaranteed to exist

https://i.ytimg.com/vi/jNQXAC9IVRw/sddefault.jpg (video)

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-lnbkmh?file=pages%2Findex.vue

🌈 Expected behavior

Expected the youtube placeholder can show all videos preview thumbnail image.

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions