Every thumb has video icon
See original GitHub issuemy setup is like this
const matchingAlbums = await this.$strapi.find('albums', {
slug: this.$route.params.slug,
})
const images = []
matchingAlbums[0].media.forEach(function (item) {
if (item.ext === '.mp4') {
images.push({
thumb: getStrapiMedia(`${item.formats.small.url}`),
thumb_small: item.formats.thumbnail
? getStrapiMedia(`${item.formats.thumbnail.url}`)
: getStrapiMedia(`${item.formats.small.url}`),
width: item.formats.small.width,
height: item.formats.small.height,
type: 'video',
sources: [
{
src: getStrapiMedia(`${item.url}`),
type: 'video/mp4',
},
],
})
} else {
images.push({
thumb: getStrapiMedia(`${item.formats.small.url}`),
thumb_small: item.formats.thumbnail
? getStrapiMedia(`${item.formats.thumbnail.url}`)
: getStrapiMedia(`${item.formats.small.url}`),
width: item.width,
height: item.height,
type: 'image',
src: getStrapiMedia(`${item.url}`),
})
}
})
this.images = images
then i use this
<LightBox ref="lightbox" :media="images" :show-light-box="false"></LightBox>
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to fix "Show Thumbnails instead of icons" for video files ...
PROBLEM:Although Windows 8 is set to show thumbnails for video and graphics file formats, it is still showing icons only.
Read more >Change from video thumb nail Icon to photo of the movie clip
Change from video thumb nail Icon to photo of the movie clip · Click Start > right-click Computer > click Properties · In...
Read more >Learn the meaning of the iPhone status icons
Learn the meanings of the iPhone status icons in the status bar at the top of the screen.
Read more >What Are Video Thumbnails and Why Do They Matter?
A video thumbnail is a still image that acts as the preview image for your video. Why are video thumbnails important? A great...
Read more >Video Icon | Font Awesome
Video icon in the Solid style. Make a bold statement in small sizes.. Available now in Font Awesome 6.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
the red rectangle area thumbs has video icons for me even they are just jpgs
I totally missed your comment in March. Did you find a solution? If not I will look into it, but I’m not 100% sure yet that I want vue-it-bigger to depend on plyr. 😄