Skip to content

How can I store the number of frames played by the previous piece of data during the progressive animated webp download process? #2350

@chenleejr

Description

@chenleejr

Description

I want to add animated webp progressive loading to Fresco so that I can play the animation during the download process. But there is a problem that has been bothering me for a long time, how can I store the number of frames played by the previous piece of data. During the download process, each piece of data will continue to play from the last frame of the previous piece of data, but each piece of data will generate a separate EncodeImage and CloseableAnimatedImage. These data structures do not have uri field, so I can't map the number of frames to the data source. Is adding uri to these data structures elegant? Or is there any other better way?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions