coil icon indicating copy to clipboard operation
coil copied to clipboard

Play the count of plays of the GIF to the count of plays of the GIF itself.

Open JerryLiust opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. I want to play the count of plays of the GIF to the count of plays of the GIF itself. For example, the built-in count of plays of GIF is 3, and I want to play the corresponding count, and I don't want to set a repeatCount by ImageRequest, but if I don't set it, the default repeatCount will be REPEAT_INFINITE, this is not what I want.

Describe the solution you'd like A clear and concise description of what you want to happen. I want to play the built-in count of GIF without manually set a fixed count of playback times.

Additional context Add any other context or screenshots about the feature request here. image The baseDrawable.repeatCount is what I want, but it will be reassigned to options.parameters.repeatCount() ?: REPEAT_INFINITE, how should I play the repeatCount of baseDrawale automatically?

JerryLiust avatar Sep 11 '23 11:09 JerryLiust

We should definitely support this. I don't think we can change the existing default behaviour unfortunately, but we could probably introduce a special constant that triggers this behaviour.

colinrtwhite avatar Sep 12 '23 15:09 colinrtwhite

Thanks for your reply, I'm looking forward to your new version of coil to support this.

JerryLiust avatar Sep 13 '23 02:09 JerryLiust