Replies: 1 comment
-
| 
         Agree that is the unzip partially fails we should throw an error rather than play a partial animation. PRs welcome!  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
We are currently downloading Lottie files as zip packages. After unzipping and loading them, we occasionally encounter cases where the unzip process partially fails, but some files are still written to disk. This results in a mismatch between the number of images and the assets referenced in the JSON, which can cause frame skipping during Lottie playback.
We are wondering if it would be feasible to traverse the JSON file, get the assets array, and check the p and u fields to verify that all referenced image files are present.
We would greatly appreciate any suggestions or best practices regarding this.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions