question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Every thumb has video icon

See original GitHub issue

my 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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kgnfthcommented, Mar 26, 2021

OK, but what’s the problem?

the red rectangle area thumbs has video icons for me even they are just jpgs

msedge_vE5SoWQjE1

0reactions
janosrusiczkicommented, Jun 15, 2021

Yes its fixed. i have one more question, how can we change the video player to plyr

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. 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found