Skip to content
New issue

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

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

Already on GitHub? # to your account

Loop: Updated to use a single Sequence to fix video gaps #2259

Merged
merged 2 commits into from
May 16, 2023

Conversation

deevus
Copy link
Contributor

@deevus deevus commented May 16, 2023

This took me a few hours to understand what was going on. To be fair I had not looked at the source code for Remotion before. As noted in #2207 (comment) the issue is that Sequence unmounts it's children when it isn't in frame. Looping using a collection of Sequence components therefore has this gap issue because of this unmounting and remounting of the underlying Video component.

This solution uses a bit of code from Discord modified such that it will stop after the maximum frame has been reached.

Fixes #2207
/claim #2207

@vercel
Copy link

vercel bot commented May 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
remotion ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2023 9:42am

@JonnyBurger
Copy link
Member

Thanks a lot! 🥳 🙌

Sorry for the inaccurate issue description leading you the wrong way. We'll definitely try to learn from that to improve in the future! Even more impressive that you hung in there! ✊

Also unexpectedly, this led to the Loop component being displayed in a weird way in the timeline - fixed that up now as well!

@deevus
Copy link
Contributor Author

deevus commented May 16, 2023

No worries @JonnyBurger thanks for the help along the way. Hopefully I can contribute more in the future.

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

Successfully merging this pull request may close these issues.

<Loop> component will re-mount a component due to key change
2 participants