question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix looping for short HTML5 GIFs

See original GitHub issue

Current 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:open
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Hrxncommented, Sep 4, 2016

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.

2reactions
EdgingTutorcommented, Mar 26, 2019

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found