bumptech/glide

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

Open

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

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

倉庫指標

Star
 (35,023 star)
PR 合併指標
 (平均合併 4天 10小時) (30 天內合併 11 個 PR)

描述

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

貢獻者指南