bumptech/glide

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

Open

#2,151 opened on 2017年7月20日

GitHub で見る
 (3 comments) (4 reactions) (0 assignees)Java (6,176 forks)batch import
GIFenhancementhelp wanted

Repository metrics

Stars
 (35,023 stars)
PR merge metrics
 (平均マージ 4d 10h) (30d で 11 merged PRs)

説明

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

コントリビューターガイド