bumptech/glide

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

Open

#2,151 opened on Jul 20, 2017

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

Repository metrics

Stars
 (35,023 stars)
PR merge metrics
 (Avg merge 4d 10h) (11 merged PRs in 30d)

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