Published
What you get with every video
- A poster: a still image, at
https://api.fileboy.io/videos/VIDEO_ID/poster. The player shows it before play, and you can use it as a card image or a link preview. - Poster suggestions: a few other frames, best first, to pick from.
- An animated preview: a few silent seconds as an MP4 and a GIF, for hover previews.
- Seek thumbnails: the small frames over the progress bar, as a WebVTT file at
/videos/VIDEO_ID/thumbnails.vtt.
They are made once the video has finished processing, so a new video's poster may not be there for a moment. Reading them needs no key, unless the app requires signed URLs.
Find the URLs
A video from listVideos (the management API, with your private key) carries its poster URL, its poster suggestions and its preview:
import { Fileboy } from "@cd2/fileboy-node"
const fileboy = Fileboy({
publicKey: process.env.FILEBOY_PUBLIC_KEY!,
privateKey: process.env.FILEBOY_PRIVATE_KEY!,
})
const { data: videos } = await fileboy.listVideos({ status: "ready", limit: 20 })
const video = videos[0]
video.urls?.poster // the poster, once the video is ready
video.posterSuggestions // [{ fileId, time, url, inUse }]
video.preview?.gif // an animated preview, once made
video.preview?.mp4Choose a different poster
The automatic poster is the frame picked when the video was processed. If it is a black frame or a half-closed eye, pick one of the suggestions, or go back to the automatic one:
// the suggestion at 12.4 seconds
const pick = video.posterSuggestions.find(s => Math.abs(s.time - 12.4) < 1)
if (pick) await fileboy.chooseVideoPoster(video.id, { suggestion: pick.fileId })
// back to the one picked at processing
await fileboy.chooseVideoPoster(video.id, { source: "automatic" })To show your own image for one page without changing the video, give the player a poster attribute:
<script type="module" src="https://cdn.jsdelivr.net/npm/@cd2/fileboy-player@1.20/dist/fileboy-player.js"></script>
<fileboy-player
video-id="YOUR_VIDEO_ID"
poster="https://example.com/lesson-1.jpg"
></fileboy-player>Use them
A card grid that shows the poster, and swaps to the animated preview when hovered:
<a href="/videos/VIDEO_ID" class="card">
<img src="POSTER_URL" width="640" height="360" alt="" loading="lazy" />
<video src="PREVIEW_MP4_URL" muted loop playsinline preload="none"></video>
</a>In email, where video and scripts are stripped, use the poster inside a link to a page that plays the video. For seek thumbnails over the progress bar, the player's thumbnails attribute takes the thumbnails.vtt URL, and Plyr and Video.js accept it too (see Play a video).
For a video processed before these existed, or after a failure, queueVideoExtras(videoId) makes the poster suggestions, the animated preview and the MP4 downloads again (the MP4s count towards your storage). They are built in the background, and the video's extras.status says when they are ready.
Checked against the current libraries in November 2026. Found something that no longer works? Tell us.