coil
coil copied to clipboard
Play the count of plays of the GIF to the count of plays of the GIF itself.
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.
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?
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.
Thanks for your reply, I'm looking forward to your new version of coil to support this.