Thumbnail of video

Bonjour à tous,

Savez-vous s’il existe une URL pour récupérer la miniature d’une vidéo ? L’idée est de l’intégrée sur mon site.

Merci


Good morning all,

Do you know if there is a URL to retrieve the thumbnail of a video? The idea is to integrate it on my site.

Thank you

Hello,

Yes: https://domain.tld/static/previews/:videoUUID. For example: https://peertube2.cpy.re/static/previews/9c9de5e8-0a1e-484a-b099-e80766180a6d.jpg

Super, merci !

Hi, this doesn’t seem to work anymore :frowning:

I’m trying to transform <iframe> embeds into static image + link.

I found /lazy-static/thumbnails/ and /lazy-static/previews/ paths, but they don’t work with the video UUID, it seems that they require an API call to get another UUID, which doesn’t work in my case as I want to avoid any third-party call.

Hello,

Yes sorry we had to generate unique preview filename to invalidate the cache when the preview file changed. You have to ask PeerTube API to find the preview filename/url

It’s not possible to use the API, as we don’t want to include any third-party call or code. It would be nice to have a endpoint redirect to the current thumbnail, like Youtube does :slight_smile:

Oh okay I understand. Then please create an issue on Issues · Chocobozzz/PeerTube · GitHub :slight_smile:

Thanks, done: Endpoint to get the video thumbnail · Issue #6147 · Chocobozzz/PeerTube · GitHub