Reputation: 59
I am creating an application with Vue.js and Django. I am getting a list of videos from AWS S3 and I am displaying it in the frontend. Now I need to create thumbnails for these videos? I want to know what is the best practice to generate the thumbnails? Should I:
Currently, I am finding solutions on how to generate thumbnails on the frontend or how to save them but no one is discussing which is the best way to do it.
Upvotes: 2
Views: 1225
Reputation: 478
For some platforms/browsers (for example, iOs Safari)
preload="metadata"
won't show you a thumbnail. You can workaround it, by adding to src timestamp (#t=0.001):
<video
src="preSignedUrlCanGoHere#t=0.001"
preload="metadata"
controls
controlsList="nodownload">
</video>
Upvotes: 1
Reputation: 10393
preload= metadata shows a thumbnail automatically in browser, I would avoid complexity of storing the thumbnails all together, unless it is needed.
<video
src="preSignedUrlCanGoHere"
preload="metadata"
controls
controlsList="nodownload">
</video>
Upvotes: 3