默认情况下,Android 8.1.0 .mov文件处理正常。如何从较低版本的库中获取.mov文件?
File[] file = Environment.getExternalStorageDirectory().listFiles();
try {
for (File aFile : file) {
if (!aFile.isDirectory()) {
if (aFile.getName().endsWith(".mov")) {
Log.e("VIDEO_FILE=====", aFile.getAbsolutePath());
Uri uri_mov = Uri.parse(aFile.getAbsolutePath());
mediaList.add(new ExternalMediaFileBean(uri_mov, false));
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
//要获取Thumb并显示图像 在这里,我尝试获取较低版本中的Thumb值不支持此方法。您能否建议在Android 8.1中正常工作的something.mov文件过程。
public void image_LoaderForURI(Uri uri, SimpleDraweeView imageView) {
ImageRequest request =
ImageRequestBuilder.newBuilderWithSource(uri)
.setResizeOptions(new ResizeOptions(150, 150))
.build();
DraweeController controller = Fresco.newDraweeControllerBuilder()
.setImageRequest(request)
.setOldController(imageView.getController())
.build();
imageView.setController(controller);
}