react-video-thumbnail icon indicating copy to clipboard operation
react-video-thumbnail copied to clipboard

Only one VideoThumbnail is rendered

Open slm1977 opened this issue 2 years ago • 0 comments

Hi, I'm trying to render 2 thumbnails one after the other using the VideoThumbnail component in this way:

<> <VideoThumbnail videoUrl={item.source} thumbnailHandler={(thumbnail) =>{console.log("loaded 1")}} snapshotAtTime={0} renderThumbnail={true} width={40} height={40} />

                <VideoThumbnail 
                  videoUrl={item.source}
                  thumbnailHandler={(thumbnail) =>{console.log("loaded 2")}}
                  snapshotAtTime={2}
                  renderThumbnail={true}
                  width={40}
                  height={40}
                  />

</>

The problem is that only the first <VideoThumbnail> is rendered (the second is not rendered at all). Note that even if I try to render a different React component instead of the second <Video Thumbnail> (e.g. a <Label>), that component is not rendered either. Please could you tell me if am I doing something wrong of is there a rendering issue in the library? Thank you in advance for your help!

slm1977 avatar Oct 19 '22 11:10 slm1977