Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one VideoThumbnail is rendered #12

Open
slm1977 opened this issue Oct 19, 2022 · 0 comments
Open

Only one VideoThumbnail is rendered #12

slm1977 opened this issue Oct 19, 2022 · 0 comments

Comments

@slm1977
Copy link

slm1977 commented Oct 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant