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.

A gif is playing very fast

See original GitHub issue

tumblr_ku2pvuJkJG1qz9qooo1_r1_400

Plays really fast than how it is shown in Android Gallery and Chrome. Issue occurs while using ImageDecoderDecoder. If only GifDecoder is used, gif doesn’t play at all.

How do I load this gif? Checkout #539

This is how it looks when I load it:

record.mp4.zip

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
colinrtwhitecommented, Jun 21, 2021

@IljaKosynkin I ended up taking a stab at it this weekend here. It uses the less cumbersome solution, but I haven’t seen any artifacts using it yet.

@seankim-android If you want to use it asap in your project you can copy the FrameDelayRewritingSource from the linked PR and create a decoder that wraps GifDecoder/ImageDecoderDecoder like so:

class DelegateGifDecoder(private val delegate: Decoder): Decoder by delegate {

    override suspend fun decode(
        pool: BitmapPool,
        source: BufferedSource,
        size: Size,
        options: Options
    ) = delegate.decode(pool, FrameDelayRewritingSource(source).buffer(), size, options)
}

Though, keep in mind that it isn’t fully tested and may have bugs!

2reactions
IljaKosynkincommented, Oct 28, 2020

Sure, gonna take a look @colinrtwhite

Read more comments on GitHub >

github_iconTop Results From Across the Web

GIFs play at super fast speed. Happens in comments as well ...
It happens on Facebook, Slack, Twitter, etc. Most apps that have GIFs do this for me. iMessage is fine. Have you found a...
Read more >
Gifs play too fast iPhone 13 Max Pro - Apple Community
Gifs play too fast iPhone 13 Max Pro. This happens across all apps-Facebook, Voxer, texting. Very frustrating. Is there a fix for this?...
Read more >
GIF Speeds Play Too Fast - Samsung Community - 242715
Go to 'settings' > 'apps' > '3 dots in the corner' > 'show system apps' > find 'Message service' > 'clear cache'. Just...
Read more >
GIF speed is too fast/not exporting correctly
A gif has no fixed frame rate. If you want it to run at an approximate* speed then set a frame delay to...
Read more >
Change GIF Playback Speed - Online GIF Tools
If the delay is small, the GIF plays faster (frames are drawn very quickly), and if the delay is big, the GIF plays...
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