bumptech/glide

hi, how to get gif duration at glide 4.+

Open

#2151 opened on Jul 20, 2017

View on GitHub
 (3 comments) (4 reactions) (0 assignees)Java (35,023 stars) (6,176 forks)batch import
GIFenhancementhelp wanted

Description

At glide 3.+,we may get duration like this GifDecoder decoder = resource.getDecoder(); if(decoder!=null){ int duration; for(int i=0;i<decoder.getFrameCount();i++){ duration+=decoder.getDelay(i); } } so ,i want to ask how to get duration at 4.0

Contributor guide