一个音视频封面、缩略图、多媒体信息加载工具
//load video info
MediaRetriever
.withVideo(url)
.thumbnailType(MediaRetriever.MINI_KIND)
.placeHolder(R.mipmap.ic_launcher)
.metaKeys(metadataKeys)
.into(view);
//load audio
MediaRetriever
.withAudio(url)
.thumbnailType(MediaRetriever.MINI_KIND)
.placeHolder(R.mipmap.ic_launcher)
.metaKeys(metadataKeys)
.into(view);
//load meta info
MediaRetriever.withVideo(url).metaKeys(metadataKeys).into(new OnMediaRetrieverLoadCallback() {
@Override
public void onMetaDataGet(Map<MetadataKey, String> metaData) {
//...
}
});