Fresco: I want to load a video thumbnail,how can i do that with fresco .thanks

Created on 23 Dec 2015  路  4Comments  路  Source: facebook/fresco

Most helpful comment

@lambdapioneer Yeah, i checked it, but it doesn't load any video thumbnails. I have modified the fresco samples comparison app to load video uris instead of image uris, it doesn't show any thumbnails, just modified the projection and selection and the uri. It shows Blank Thumbnails and the Loading... text doesn't change. What could be the problem.

Same kind of implementation present in Glide as well, there they go one step further and directly use the MediaMetadataRetriever instead of Thumbnail utils. It works fine with the Glide. I would want to try the Fresco for my project as it has real Loading, instead of Cache Loading in Glide.

Could you throw some points on this video thumbnail loading failure.

All 4 comments

mSimpleDraweeView.setImageURI(Uri.fromFile(new File(videoPath)));

Sometimes , for some files, the videothumbnail fails. any idea how the video thumbnails are loaded in fresco?

@lambdapioneer Yeah, i checked it, but it doesn't load any video thumbnails. I have modified the fresco samples comparison app to load video uris instead of image uris, it doesn't show any thumbnails, just modified the projection and selection and the uri. It shows Blank Thumbnails and the Loading... text doesn't change. What could be the problem.

Same kind of implementation present in Glide as well, there they go one step further and directly use the MediaMetadataRetriever instead of Thumbnail utils. It works fine with the Glide. I would want to try the Fresco for my project as it has real Loading, instead of Cache Loading in Glide.

Could you throw some points on this video thumbnail loading failure.

Was this page helpful?
0 / 5 - 0 ratings