Search code examples
android-image

Create video thumbnails from path


I'm trying for some time to create thumbnails from video without success. In fact I found several solutions on web but none work on all Android versions.

The only method that seems to work, works by using the id of the video. My problem is I need to use the video path but i don't find a way to do that. (no method works on all versions of Android.)

I need a solution that works on all versions greater than 2.0 would be sufficient.

Could you help me? Thank you in advance!


Solution

  • ThumbnailUtils.createVideoThumbnail (String filePath, int kind) could help?