react-video-thumbnail
react-video-thumbnail copied to clipboard
Only one VideoThumbnail is rendered
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!