Fix looping for short HTML5 GIFs
See original GitHub issueCurrent behavior:
Short GIFs in video format play once and immediately skip to next slide, disregarding rp.settings.timeToNextSlide
Expected behavior:
GIFs should loop for as long as the rp.settings.timeToNextSlide
is. Regardless of whether they are an actual image file with a .gif extension or a .webm / .mp4 video.
See this fix in a fork
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Improve Animated GIF Performance With HTML5 Video
With HTML5 video, you can reduce the size of GIF content by up to 98% ... the first browser to added the ability...
Read more >How to Make Looping Animations Work in HTML5 - YouTube
This tutorial shows you how to make looping animations work in HTML5.Learn more about iSpring Suite ...
Read more >How do I fix gifs that stop looping? : r/css - Reddit
You need to edit the gif in a graphic software and tell it to loop infinite. This cannot be done in html or...
Read more >Optimizing Animated GIFs by Converting to HTML5 Video
This will automatically start the video, and loop it, without displaying any video controls. This gives the same experience as the animated GIF...
Read more >(Animated) GIF can't have states in HTML5 - E-Learning Heroes
Or, if you pause the part of the timeline that the animated GIF occupies and the GIF is set to loop, then the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, that is what I’m saying. That is the current behaviour for all ‘video as animation’, e.g.
.gifv
from Imgur or Gfycat, at least for me.This is the most sensible variant, in my opinion. I don’t see the point in cutting off an item. But if someone requests this, I think a small checkbox with
enforce
or something next to the time entry field would be the most intuitive solution.I would like to raise this issue again because it’s still not completely fixed. Apparently as of now, GIFs will be looped but MP4 videos are only played once.
I agree with @akaleeroy , the default behavior should be to play any video for EXACTLY the time specified by the user. If it is too short, loop it. If it is too long, cut it. An option to “play videos once” would cover both cases, short GIFs as well as long videos, so they will be played exactly one time regardless of their length. 😃