tuskyapp / Tusky

An Android client for the microblogging server Mastodon
https://tusky.app
GNU General Public License v3.0
2.45k stars 387 forks source link

nonlooping gifs loop infinitely #3538

Open bodonkerhoderos opened 1 year ago

bodonkerhoderos commented 1 year ago

i have a custom emoji gif that is set to play once and not loop again. when displayed on tusky, it loops infinitely regardless. in the web client using firefox it plays once as expected.

a public toot as an example (this is a gotosocial instance but i have observed the same behaviour when uploaded to mastodon v4.1.2+glitch):

https://demon.princess.pet/@lyds/statuses/01GY3KS9JJSKV9PWCK0S15ZG6D


Lakoja commented 1 year ago

(Technical research)

It looks as if that loop count is not read/supported (in class com.github.penfeizhou.animation.gif.GifDrawable)?

One could set the loop count in EmojiSpan#getTarget if (resource is GifDrawable) resource.setLoopLimit(1)

But I don't see how I easily can find out the actual loop limit.