bumptech/glide

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

Open

#2,151 建立於 2017年7月20日

在 GitHub 查看
 (3 留言) (4 反應) (0 負責人)Java (35,023 star) (6,176 fork)batch import
GIFenhancementhelp wanted

描述

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

貢獻者指南