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

Cannot stop GIF playback #3581

Open
steve228uk opened this issue Aug 4, 2023 · 2 comments
Open

Cannot stop GIF playback #3581

steve228uk opened this issue Aug 4, 2023 · 2 comments
Labels
can not reproduce Need demo to reproduce

Comments

@steve228uk
Copy link

New Issue Checklist

Issue Info

Info Value
Platform Name iOS
Platform Version 16
SDWebImage Version 5
Integration Method cocoapods
Xcode Version 14.3.1
Repro rate 100%
Repro with our demo prj Not tried

Issue Description and Steps

It seems impossible to stop a GIF from animating. The following does not work. I have also tried accessing the player or setting the playbackRate

sdImageView.sd_setImage(with: source.uri) { image, error, cache, url in
    print("Animating: \(self.sdImageView.isAnimating)")
    self.sdImageView.stopAnimating()
}

self.sdImageView.stopAnimating()

``
@dreampiggy
Copy link
Contributor

dreampiggy commented Sep 1, 2023

Can not reproduce...You can try SDWebImage's Demo ? Which call SDAnimatedImageView.stopAnimating() when you click the Toggle Animation Button (top-right corner). See:

self.imageView.isAnimating ? [self.imageView stopAnimating] : [self.imageView startAnimating];

@dreampiggy
Copy link
Contributor

You can also try the latest version as well, updated to 5.18.0

@dreampiggy dreampiggy added the can not reproduce Need demo to reproduce label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can not reproduce Need demo to reproduce
Projects
None yet
Development

No branches or pull requests

2 participants