add thumbnail to apollo

This commit is contained in:
Pas 2025-04-14 09:04:24 -06:00
parent a2cbe5ae30
commit ed9c02221c

View file

@ -117,6 +117,14 @@ export const xprimeApolloEmbed = makeEmbed({
playlist: data.url,
flags: [flags.CORS_ALLOWED],
captions,
...(data.thumbnails?.file
? {
thumbnailTrack: {
type: 'vtt',
url: data.thumbnails.file,
},
}
: {}),
},
],
};